查看TCP状态命令:
[[email protected]_206_14_centos ~]$ netstat -n | awk ‘/^tcp/ {++S[$NF]} END {for(a in S) print a, S[a]}‘ TIME_WAIT 179 CLOSE_WAIT 1 SYN_SENT 1 FIN_WAIT1 181 FIN_WAIT2 4 ESTABLISHED 56986 SYN_RECV 220 LAST_ACK 293 [[email protected]_206_14_centos ~]$
时间: 2024-10-12 01:39:54