Linux 用netstat和awk命令来统计网络连接数netstat -n | awk ‘/^tcp/ {++state[$NF]} END {for(key in state) print key,”\t”,state[key]}’