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

时间:2023-03-08 19:29:51

一、命令

netstat -lnt  或 netstat -tnlp

如:

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

二、较全

netstat -antulp

三、简单

ss -tanl  或 ss -tanlp

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

三、补充

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

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

相关文章