ps aux | grep xxx | grep -v grep | awk '{print $2}' | xargs kill -9
我只测试了 centos 7 可以用
命令中的xxx代表你要删选的进程名