web | Java

Linux系统统计服务器服务连接数命令?

千锋教育

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