修改$TOMCAT_HOME/bin/catalina.sh文件,大约在128行左右,在PRGDIR下面一行添加CATALINA_PID参数行,修改完成后应该跟下面相同
CATALINA_PID=$PRGDIR/CATALINA_PID也可以自定义pid路径,例如“CATALINA_PID=/var/run/tomcat.pid”
(原文链接:https://blog.csdn.net/wangjc_opal/article/details/78026749)
if [ -z "$CATALINA_PID" ]; then CATALINA_PID=$PRGDIR/CATALINA_PID cat $CATALINA_PID fi
原来的 exec "$PRGDIR"/"$EXECUTABLE" stop "$@"
原文:https://www.cnblogs.com/xuzhuteng/p/12500876.html