ps -ef | grep 进程名字
netstat -nltp | grep 端口
或者
netstat -anp | grep 端口
kill pid
Linux查看端口占用进程
原文:https://www.cnblogs.com/KHZ521/p/14465921.html