netstat -apn|grep 端口号
例子:例如:netstat -apn|grep 5000
kill -9 进程号
例子:例如:kill -9 1663952
重复第一步骤。
发现没有进程,表示这个端口进程已经被杀掉了。