tomcatpid=`ps -ef | grep tomcat- | grep -v grep | awk '{print $2}'`
echo "tomcat项目进程ID为:$tomcatpid"
#杀进程
echo "kill tomcat PID..."
for id in $tomcatpid
do
kill -9 $id
done
echo "$tomcatpid 已杀死..."
批量杀死进程 -- .sh
最新推荐文章于 2022-10-04 01:14:24 发布