shell脚本自动结束java进程后再启动Tomcat

shell脚本自动结束java进程后再启动Tomcat

ps aux|grep tomcat| grep -v "grep" | awk '{print $2}' | xargs kill -9

Tomcat5.5/bin/startup.sh

相关推荐