Linux - CentOS 7 - 查看TCP/IP连接状态

查看TCP/IP连接的状态命令如下:

[root@localhost ~]# netstat -n | awk '/^tcp/ {++state[$NF]} END {for (key in state) print key,"\t",state[key]}'
ESTABLISHED    63
TIME_WAIT      3

你可能感兴趣的:(Linux - CentOS 7 - 查看TCP/IP连接状态)