Linux查看网络连接数

netstat -an|awk '/^tcp/{++S[$NF]}END{for (a in S)print a,S[a]}'

输出结果:

TIME_WAIT 65
ESTABLISHED 99
CLOSING 1
LISTEN 735  
posted @ 2021-08-08 17:24  lucky_tomato  阅读(586)  评论(0编辑  收藏  举报