3、杀死某个服务下的多个进程

第一种方式:

查看某个服务下的进程

ps -ef |grep mysql

杀死服务下的所有进程

ps -ef |grep mysql|grep -v grep |awk '{print $2}'|xargs kill -9

ps -ef |grep mysql

第二种方式:

kill -9 1049 1418

原文地址:https://www.cnblogs.com/whxiao/p/13259651.html