+
95
-

centos下sudo: java: command not found解决办法

centos下sudo: java: command not found解决办法是什么?

网友回复

+
15
-

修改dudoers文件

sudo vim /etc/sudoers

在在Defaults secure_path 中添加Java的路径

#
# This file MUST be edited with the 'visudo' command as root.
#
# Please consider adding local content in /etc/sudoers.d/ instead of
# directly modifying this file.
#
# See the man page for details on how to write a sudoers fi...

点击查看剩余70%

我知道答案,我要回答