一、命令
netstat -lnt 或 netstat -tnlp
如:
二、较全
netstat -antulp
三、简单
ss -tanl 或 ss -tanlp
三、补充
Windows中使用的命令是:netstat -ano