首页 > 代码库 > tomcat重启脚本

tomcat重启脚本

 1 #!/bin/bash 2 #2014/11/25 pdd 3  4 /data/tomcat-ftp/bin/shutdown.sh>/dev/null 2>&1  5  6 sleep 10 7  8 if ps aux | grep -v grep | grep -q tomcat-ftp ;then 9 10         ps aux | grep tomcat-ftp | grep -v grep | awk {print $2} | xargs kill11 12         /data/tomcat-ftp/bin/startup.sh>/dev/null 2>&113 14 else15         /data/tomcat-ftp/bin/startup.sh>/dev/null 2>&116 17 fi

 

tomcat重启脚本