一、根据名称称查找并关闭:pgrep -f 名称 | xargs kill -9awk
二、根据端口称查找并关闭:lsof -i:端口 | grep LISTEN|awk '{print $2}'|xargs kill -9grep