# netstat -n | awk ‘/^tcp/ {++S[$NF]} END {for(a in S) print a, S[a]}‘
查看Apache的在线用户数方法
原文:http://www.jb51.net/os/RedHat/1308.html