netstat用法扩展
1. 统计有多少连接数
netstat -an | grep ESTABLISHED | wc -l
2. 统计80端口连接数
netstat -nat|grep -i "80"|wc -l
3. 查看不同状态的连接数数量
netstat -an | awk '/^tcp/ {++y[$NF]} END {for(w in y) print w, y[w]}'
除特别注明外,本站所有文章均为奇妙伞原创,转载请注明出处来自https://qm3.com.cn/post/268.html