netstat -antu //查看TCP,udp连接,t代表tcp,u代表udp,n代表以数字形式显示
[root@centos—text ~]# netstat -antu
Active Internet connections (servers and established)
Proto Recv-Q Send-Q Local Address本地 Foreign Address 外部 State 状态
tcp 0 0 0.0.0.0:58274//四个0表示本机的所有ip 0.0.0.0:* LISTEN
tcp 0 0 0.0.0.0:111 0.0.0.0:* LISTEN
tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN
tcp 0 0 127.0.0.1:631 0.0.0.0:* LISTEN
tcp 0 0 127.0.0.1:25 0.0.0.0:* LISTEN
tcp 0 52 172.16.3.36:22 172.16.2.17:50150 ESTABLISHED
tcp 0 0 :::52384 ::? LISTEN
tcp 0 0 :::111 ::? LISTEN
tcp 0 0 :::22 ::? LISTEN
tcp 0 0 ::1:631 ::? LISTEN
tcp 0 0 ::1:25 ::? LISTEN
udp 0 0 127.0.0.1:874 0.0.0.0:*
udp 0 0 0.0.0.0:111 0.0.0.0:*
udp 0 0 0.0.0.0:42741 0.0.0.0:*
udp 0 0 0.0.0.0:631 0.0.0.0:*
udp 0 0 0.0.0.0:51884 0.0.0.0:*
udp 0 0 0.0.0.0:851 0.0.0.0:*
udp 0 0 :::111 ::?
计算机网络之TCP与UDP协议
最新推荐文章于 2023-04-16 16:38:37 发布