Linux查看端口占用进程

查看程序对应的进程号:

ps -ef | grep 进程名字

查看端口号所占用的进程:

netstat -nltp | grep 端口 

或者

netstat -anp | grep 端口 

杀死进程

kill pid
原文地址:https://www.cnblogs.com/KHZ521/p/14465921.html