Linux:
netstat -anp|grep 端口号
Windows:
netstat –ano|findstr 端口号
使用netstat查看某个端口哪个进程占用
原文:https://www.cnblogs.com/gaopengpy/p/13181853.html