nginx查看并发数量

cat >> /etc/nginx/conf.d/status.conf << EOF

server{

    listen 8085;

    server_name www.test2.com;

    location / {

        stub_status on;

        access_log /usr/local/nginx/logs/status.log;

    }

}

EOF


[root@www conf.d]# nginx -t
nginx: the configuration file /etc/nginx/nginx.conf syntax is ok
nginx: configuration file /etc/nginx/nginx.conf test is successful
[root@www conf.d]# nginx -s reload
[root@www conf.d]# 
[root@www conf.d]# 
[root@www conf.d]# curl http://192.168.1.204:8085
Active connections: 1 
server accepts handled requests
 3 3 3 
Reading: 0 Writing: 1 Waiting: 0 

Active connections  就是显示的并发量 
原文地址:https://www.cnblogs.com/effortsing/p/10075769.html