This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
查看当前系统下所有连接状态的数: | |
[root@vps ~]#netstat -n|awk '/^tcp/{++S[$NF]}END{for (key in S) print key,S[key]}' | |
TIME_WAIT 286 | |
FIN_WAIT1 5 | |
FIN_WAIT2 6 | |
ESTABLISHED 269 | |
SYN_RECV 5 | |
CLOSING 1 |