Mac下查看端口占用

netstat命令

netstat -an | grep 端口号

lsof命令

lsof -i:端口号

原文地址:https://www.cnblogs.com/coolwxb/p/Mac-xia-cha-kan-duan-kou-zhan-yong.html