echo '开始查找tomcat进程'
ID=`ps -fx | grep tomcat | awk '{print $1}'`
echo $ID
echo "开始结束tomcat进程"
for id in $ID
do
kill - $id
echo killed $id
done
echo "tomcat全部结束..."
echo "============================================"
echo "开始启动tomcat"
echo '开始查找tomcat进程'
ID=`ps -fx | grep tomcat | awk '{print $1}'`
echo $ID
echo "开始结束tomcat进程"
for id in $ID
do
kill - $id
echo killed $id
done
echo "tomcat全部结束..."
echo "============================================"
echo "开始启动tomcat"