标签:linux 自动重启tomcat tomcat自动重启 tomcat定时重启
caicongyang
http://blog.csdn.net/caicongyang
#!/bin/sh pid=`ps aux |grep tomcat |grep -v grep |grep -v retomcat | awk '{print $2}'` echo $pid if [ -n "$pid" ] then { echo =====kill tomcat ========== kill -9 $pid sleep 3 echo =========startup.sh ============= /usr/local/tomcat/bin/startup.sh } else echo ===========startup.sh============= /usr/local/tomcat/bin/startup.sh fi
我的CSDN博客地址: http://blog.csdn.net/caicongyang
标签:linux 自动重启tomcat tomcat自动重启 tomcat定时重启
原文地址:http://blog.csdn.net/caicongyang/article/details/46636511