强制杀死tomcat

2017-03-23  本文已影响32人  ouyangan

有时候利用tomcat命令无法结束tomcat进程 ,对于jenkins自动发布很不方便, 可以采用下面方法配置tomcat

CATALINA_PID="/tomcat_path/bin/tomcat_pid.pid"
export CATALINA_PID
export BUILD_ID=tomcat_1
#!/bin/bash
cd /tomcat_path/bin
if [ -f tomcat_pid.pid ]; then
    echo "tomcat is running, will be killed"
    ./catalina.sh stop -force
fi
# todo....
/tomcat_path/bin/./startup.sh
上一篇 下一篇

猜你喜欢

热点阅读