ps -ef | grep tomcat | awk '{print $2}' | grep '^3' | xargs kill -9
ps -ef | grep tomcat (查看tomcat 所有进程)
awk '{print $2}' (打印输出第二行)
grep '^3' (匹配以3 开头的进程号)
xargs kill -9 (将信号传输给kill)