![tomcat 在 CentOS 中无法关闭](https://linux22.com/image/805329/tomcat%20%E5%9C%A8%20CentOS%20%E4%B8%AD%E6%97%A0%E6%B3%95%E5%85%B3%E9%97%AD%20.png)
我试图关闭 tomcat 但出现以下错误。
/opt/apache-tomcat-7.0.67/bin/catalina.sh: line 439: /usr/local/jdk/bin/java: No such file or directory
这是完整的输出,
root@www [/opt/apache-tomcat-7.0.67/bin]# ./shutdown.sh Using CATALINA_BASE: /opt/apache-tomcat-7.0.67 Using CATALINA_HOME: /opt/apache-tomcat-7.0.67 Using CATALINA_TMPDIR: /opt/apache-tomcat-7.0.67/temp Using JRE_HOME: /usr/local/jdk Using CLASSPATH: /opt/apache-tomcat-7.0.67/bin/bootstrap.jar:/opt/apache-tomcat-7.0.67/bin/tomcat-juli.jar /opt/apache-tomcat-7.0.67/bin/catalina.sh: line 439: /usr/local/jdk/bin/java: No such file or directory
答案1
/opt/apache-tomcat-7.0.67/bin/catalina.sh:第 439 行:/usr/local/jdk/bin/java:没有此文件或目录
这有什么不明白的?看来你JRE_HOME
可能错了。