MAC查看端口占用: sudo lsof -i -P | grep -i "listen" 转载于:https://www.cnblogs.com/douglasvegas/p/5105535.html