linux 一条命令杀掉全部tomcat残留进程

tomcat运行一段时间后会出现很多残留进程, 通过
ps -ef| grep tomcat
可以查看到 , 如下图

这些进程非常的占用内容, 所以需要清理掉。
命令:

kill -9 $(ps -ef | grep tomcat | awk {'print $2'})
原文地址:https://www.cnblogs.com/cchilei/p/14113840.html