操作系统 > RedHat/Centos > 查看Apache的在线用户数方法 2008-09-08 17:08:32 佚名 # netstat -n | awk '/^tcp/ {++S[$NF]} END {for(a in S) print a, S[a]}'