首页 > 系统 > Linux > 正文

查看Linux操作系统下的网络连接状态命令

2024-06-28 13:03:47
字体:
来源:转载
供稿:网友
 

查看http进程数

[root@localhost conf]# ps -ef|grep httpd|wc -l

333

统计连接数状态:

[root@localhost conf]# netstat -n|awk '/^tcp/{++S[$NF]} END {for(a in S) PRint a,S[a]}'LAST_ACK 173SYN_RECV 35CLOSE_WAIT 159ESTABLISHED 152FIN_WAIT1 29FIN_WAIT2 10CLOSING 39TIME_WAIT 103

发表评论 共有条评论
用户名: 密码:
验证码: 匿名发表