SA常用命令

1.查看Apache的并发请求数及其TCP连接状态:

Linux命令:

netstat-n|awk'/^tcp/{++S[$NF]}END{for(ainS)printa,S[a]}'

返回结果示例:

LAST_ACK5

SYN_RECV30

ESTABLISHED1597

FIN_WAIT151

FIN_WAIT2504

TIME_WAIT1057

具体解释参考:http://hi.baidu.com/packetslost/blog/item/ea8bc9c398be9551b219a836.html