Linux连接状态netstat
双线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服务器
二月 18th, 2011 at 11:26
路过来看看了
二月 18th, 2011 at 11:27
踩踩了–
五月 2nd, 2011 at 03:32
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[...]…
五月 2nd, 2011 at 04:39
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[...]…
五月 16th, 2011 at 21:43
[...] 本文来自于高进波的博客 [...]
六月 17th, 2011 at 05:47
Interesting Posts…
[...]some other related resources on the web that are worth viewing on this subject include[...]…
九月 11th, 2011 at 18:39
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[...]……
九月 24th, 2011 at 10:47
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[...]………