Linux用netstat查看服务及监听端口
2024年1月26日小于 1 分钟约 106 字
[root@localhost ~]# netstat -ntlp //查看当前所有tcp端口·
[root@localhost ~]# netstat -ntulp |grep 80 //查看所有80端口使用情况·
[root@localhost ~]# netstat -an | grep 3306 //查看所有3306端口使用情况·
[root@localhost ~]# netstat -nlp |grep LISTEN //查看当前所有监听端口·netstat -aWn --programs | grep 80
