启动程序失败failed to run command ‘java‘ :No such file or directory

阅读 78

2022-04-18

一般服务器的操作不使用root用户,需要切换用户

今天,启动服务器的时候显示

failed to run command 'java' :No such file or directory

于是查询了java- version
java :command not found

以为是jdk环境被人删掉了

最终问题原因是:

切换用户时使用su appoper

问题处理:

切换用户使用su -appoper

精彩评论(0)

0 0 举报