lsof

查看哪个进程占用了9999端口:
lsof -i:9999
原文地址:https://www.cnblogs.com/jilili/p/14439168.html