Linux和Windows中查看端口占用情况

一、命令

netstat -lnt  或 netstat -tnlp

如:

二、较全

netstat -antulp

三、简单

ss -tanl  或 ss -tanlp

三、补充

  Windows中使用的命令是:netstat -ano

原文地址:https://www.cnblogs.com/songxingzhu/p/7245537.html