在linux中停止tomcat的时候,出现如下提示。
过程如下:
输入# ./shutdown.sh
提示:
Neither the JAVA_HOME nor the JRE_HOME environment variable is defined
At least one of these environment variable is needed to run this program
原因权限不够:
输入 sudo -i
然后在执行:./shutdown.sh即可
本文详细介绍了在Linux环境下使用sudo权限解决Tomcat启动时出现的Neither the JAVA_HOME nor the JRE_HOME environment variable is defined错误的方法,并通过实际操作演示了解决步骤。
在linux中停止tomcat的时候,出现如下提示。
过程如下:
输入# ./shutdown.sh
提示:
Neither the JAVA_HOME nor the JRE_HOME environment variable is defined
At least one of these environment variable is needed to run this program
原因权限不够:
输入 sudo -i
然后在执行:./shutdown.sh即可
1万+
1118
1819
820
370

被折叠的 条评论
为什么被折叠?