直接关闭 lsof -i :8080|grep -v "PID"|awk '{print "kill -9",$2}'|sh netstat -tln | grep 8080 lsof -i :8080 kill -9 id