linux查看连接数
一般LINUX 系统都可以用!
netstat -n | awk ‘/^tcp/ {n=split($(NF-1),array,”:”);if(n<=2)++S[array[(1)]];else++S[array[(4)]];++s[$NF];++N} END {for(a in S){printf(“%-20s %s\n”, a, S[a]);++I}printf(“%-20s %s\n”,”TOTAL_IP”,I);for(a in s) printf(“%-20s %s\n”, a, s[a]);printf(“%-20s %s\n”,”TOTAL_LINK”,N);}’
显示结果:
TOTAL_IP 2567
LAST_ACK 1252
SYN_RECV 434
CLOSE_WAIT 1145
ESTABLISHED 3601
FIN_WAIT1 261
FIN_WAIT2 26
CLOSING 2
SYN_SENT 1864
TIME_WAIT 2494
TOTAL_LINK 11079
和六并列的好恢复
乱了
已经修整,呵呵!
??????????????
不过总觉得这个东西不是很适合网络习惯 包括即将生效的 .中国
新年快乐啊^_^
中国培训网(www.hotpeixun.com)拜年来了,祝博主及各位朋友新年快乐,工作愉快,身体健康。
博客弄的不错啊 继续加油啊 2010年一定要努力奋斗O(∩_∩)O哈哈~回踩半挂车(www.cn-auto.org)
This is so brilliant, not only as a theory, but to put into practice.
by the way I forgot the most important… your story is great, I love it from the beginning to the very end.
you are an Archetypal figure in our lives ,a masculine image of love and goodness and truth telling,and keeper of our dreams
thanks for this strong words, enriched me today.
It’s a wonderful work full of meaning and signs….
好久没来看看了!这个文章写得不错!