查看链接数netstat
1、统计某一端口的连接数
netstat -nat | grep -i "端口号" | wc -l
(netstat -nat会打印系统当前网络链接状态,而grep -i "端口号"是用来提取与该端口有关的连接的,wc -l进行连接数统计)
2、查看apache当前并发访问数(已连接上的,状态为“established“)
netstat -an | grep established | wc -l
3、统计httpd协议连接数
ps -ef|grep httpd|wc -l
浙公网安备 33010602011771号