linux查看进程与结束进程

查看所有进程

ps -ef

ps -ef | grep 查找的进程名

结束进程

ps -ef | grep 查找的进程名 | grep -v grep | awk '{print $2}' | xargs kill -9