标签:tomcat
#!/bin/sh
echo "kill -9 `ps aux|grep java|grep [t]omcat01|awk ‘{print $2}‘`"
ps aux|grep java|grep [t]omcat01|awk ‘{print $2}‘|xargs kill -9
echo "kill -9 `ps aux|grep java|grep [t]omcat02|awk ‘{print $2}‘`"
ps aux|grep java|grep [t]omcat02|awk ‘{print $2}‘|xargs kill -9
/data/webserver/tomcat01/bin/startup.sh
/data/webserver/tomcat02/bin/startup.sh
本文出自 “我的运维博客” 博客,请务必保留此出处http://linuxpython.blog.51cto.com/10015972/1643860
标签:tomcat
原文地址:http://linuxpython.blog.51cto.com/10015972/1643860