# {processName} 替换 匹配的名称 $2为PID ## 先查看一下 - ps -ef | grep {processName} | grep -v grep | awk '{print $2}' - ps -ef | grep {processName} | grep -v grep | awk '{print "kill -9 "$2}' | sh