netstat -aptn命令行,查看所有开启的端口号 netstat -nupl 查看所有udp端口号 netstat -ntpl 查看所有tcp端口号 查看某服务占用的端口情况,比如:Nginx [root@hserver1 ~]# netstat -ntulp | grep nginx tcp 0 0 0.0.0.0:80 0.0.0.0:* LISTEN 4504/nginx: master 查看指定端口的连接数量,比如:80 [root@hser...
netstat -aptn命令行,查看所有开启的端口号 netstat -nupl 查看所有udp端口号 netstat -ntpl 查看所有tcp端口号 查看某服务占用的端口情况,比如:Nginx [root@hserver1 ~]# netstat -ntulp | grep nginx tcp 0 0 0.0.0.0:80 0.0.0.0:* LISTEN 4504/nginx: master 查看指定端口的连接数量,比如:80 [root@hser...
我执行netstat -aptn 发现 tcp 0 0 142.11.219.25:22 112.85.42.200:4121 ESTABLISHED 29152/sshd: [accept tcp 0 0 142.11.219.25:22 129.204.80.188:56390 TIME_WAIT - tcp 0 0 142.11.219.25:22 120.70.100.13:52530 ESTABLISHED 29157/sshd: unknown tcp 0 68 142.11.219.25:22 112.85.42.200:42360 ESTABLI...