1. 查询web服务器的连接数:
ps -ef | grep nginx | wc -l返回的数字就是nginx的运行进程数,如果是apache则执行
ps -ef | grep httpd | wc -l
2、查看Web服务器进程连接数:
netstat -antp | grep 80 | grep ESTABLISHED -c
--------------
3. 查询连接数
1. 查询web服务器的连接数:
ps -ef | grep nginx | wc -l返回的数字就是nginx的运行进程数,如果是apache则执行
ps -ef | grep httpd | wc -l
2、查看Web服务器进程连接数:
netstat -antp | grep 80 | grep ESTABLISHED -c
--------------
3. 查询连接数