BUILD_ID=pleaseDontKillMe

echo '停止tomcat'

for pid in $(ps -ef|grep /usr/local/tomcat_release|grep -v grep|cut -c 10-15);
do
    echo $pid;
    kill -9 $pid;  
    echo '停止tomcat成功';
done;

echo '启动tomcat'
rm -rf /usr/local/tomcat_release/logs/*
rm -rf /usr/local/tomcat_release/temp/*
rm -rf /usr/local/tomcat_release/work/*
cd /usr/local/tomcat_release/bin
./startup.sh 
Logo

更多推荐