0
点赞
收藏
分享

微信扫一扫

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

无聊到学习 2022-04-18 阅读 73
java

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

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

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

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

以为是jdk环境被人删掉了

最终问题原因是:

切换用户时使用su appoper

问题处理:

切换用户使用su -appoper

举报

相关推荐

0 条评论