报错 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
本文标题:centos ssh远程执行Java -jar 出错
本文链接:https://www.haomeiwen.com/subject/xxmaoltx.html
网友评论