关闭tomcat的时候,报出如下错误信息:
# ./shutdown.sh Using CATALINA_BASE: /opt/openkm-6.3.1-community/tomcatUsing CATALINA_HOME: /opt/openkm-6.3.1-community/tomcatUsing CATALINA_TMPDIR: /opt/openkm-6.3.1-community/tomcat/tempUsing JRE_HOME: /opt/openkm-6.3.1-community/javaUsing CLASSPATH: /opt/openkm-6.3.1-community/tomcat/bin/bootstrap.jar:/opt/openkm-6.3.1-community/tomcat/bin/tomcat-juli.jarUsing CATALINA_PID: /opt/openkm-6.3.1-community/tomcat/catalina.pidTomcat did not stop in time. PID file was not removed. To aid diagnostics a thread dump has been written to standard out.#
修改方法:
# vim shutdown.shexec "$PRGDIR"/"$EXECUTABLE" stop "$@" #改成如下exec "$PRGDIR"/"$EXECUTABLE" stop -force "$@"#然后再执行shutdown.sh操作,ok,就不会报错,正常执行完毕了。
参考原文地址: