sudo lsof -i :端口号 eg: sudo lsof -i :9501 查看 sudo kill -9 PID 关闭 查看进程号 ps -ef | grep 进程名 学习笔记,仅供参考!如有侵权,请联系删除