centos ssh远程执行Java -jar 出错
2021-10-19 本文已影响0人
前进的码农
报错 nohup: failed to run command ‘java’: No such file or directory
通过mac 远程执行centos 的Java -jar脚本报这个错误
本地执行没问题,Java环境什么的都正常
解决方法在执行Java -jar的上一句加source /etc/profile
source /etc/profile
报错 nohup: failed to run command ‘java’: No such file or directory
通过mac 远程执行centos 的Java -jar脚本报这个错误
本地执行没问题,Java环境什么的都正常
解决方法在执行Java -jar的上一句加source /etc/profile
source /etc/profile