查看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
查看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