windows
linux
用netstat发现没有列出8000端口,加参数-apn后有列出。另外,若想知道8000端口情况,可
netstat -apn|grep 8000
netstat -tln
#查看端口使用情况
netstat -tln | grep 8889
#查看端口8000的使用情况
lsof -i:8889
kill -9 [进程id]
原文:https://www.cnblogs.com/LiangZhiXiong/p/14642419.html