查看哪些端口被监听

要sudo权限才能查看全部

sudo lsof -i -P | grep -i "listen"

 

:netstat –apn

原文地址:https://www.cnblogs.com/studyNT/p/5060601.html