netstat -n | awk '/^tcp/ {++S[$NF]} END {for(a in S) print a, S[a]}'
查看 某个端口
netstat -n|grep -i time_wait|grep 127.0.0.1:9000|wc -l
查看mysql的连接数
netstat -n|grep -i time_wait|grep 3306|wc -l
查看 某个端口
netstat -n|grep -i time_wait|grep 127.0.0.1:9000|wc -l
查看mysql的连接数
netstat -n|grep -i time_wait|grep 3306|wc -l
评论
发表评论