可以进程名杀进程是一个比较常用的功能,可以采用以下两种方式:
1)pkill -f processName
pkill -f tomcat
2)pgrep -f processName | xargs kill -9
pgrep -f tomcat|xargs kill -9