Linux连接状态netstat

二月 17th, 2011 Posted in Centos, Debian, Ubuntu | 阅读次数: 70
双线Linux服务器合租   Nginx服务器合租   Linux服务器合租64G超大内存
netstat -n | awk '/^tcp/ {++S[$NF]} END {for(a in S) print a, S[a]}' 

(这条语句是从张宴blog获得,宴哥从王老大获得,咳咳)

 

返回结果示例:

LAST_ACK 1
SYN_RECV 1
CLOSE_WAIT 33
ESTABLISHED 217
FIN_WAIT1 15
FIN_WAIT2 16
TIME_WAIT 46697

状态:描述
CLOSED:无连接是活动的或正在进行
LISTEN:服务器在等待进入呼叫
SYN_RECV:一个连接请求已经到达,等待确认
SYN_SENT:应用已经开始,打开一个连接
ESTABLISHED:正常数据传输状态
FIN_WAIT1:应用说它已经完成
FIN_WAIT2:另一边已同意释放
ITMED_WAIT:等待所有分组死掉
CLOSING:两边同时尝试关闭
TIME_WAIT:另一边已初始化一个释放
LAST_ACK:等待所有分组死掉
Linux主机   PHP主机   Nginx主机   双线Linux服务器

相关日志:

Tags: ,

8 Responses to “Linux连接状态netstat”

  1. 青岛红酒 Says:

    路过来看看了


  2. 青岛物流 Says:

    踩踩了–


  3. Coping With Anxiety Says:

    Some New Sites I Like…

    [...]below you’ll find the link to some websites that I think you should go and see http://www.panicattackstreatmentcure.net/links/ some are related to my site and others are unrelated but definitely worth visiting[...]…


  4. Pregnancy Miracle Review Says:

    Recent Interesting Websites…

    [...]below you’ll find my links page http://www.pregnancymiraclez.net/my-favourite-sites/ with some fantastic websites that I think you should visit[...]…


  5. linux netstat 连接状态查看 | daxuxu的部落格 Says:

    [...] 本文来自于高进波的博客 [...]


  6. yeast infection home remedy Says:

    Interesting Posts…

    [...]some other related resources on the web that are worth viewing on this subject include[...]…


  7. asigurari locuinte Says:

    Great website…

    [...]we like to honor many other internet sites on the web, even if they aren’t linked to us, by linking to them. Under are some webpages worth checking out[...]……


  8. David Says:

    Check this out……

    [...] that is the end of this article. Here you’ll find some sites that we think you’ll appreciate, just click the links over[...]………


留下您的脚印