首页 > 其他 > 详细

nginx查看并发数量

时间:2018-12-06 13:10:22      阅读:285      评论:0      收藏:0      [点我收藏+]
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  就是显示的并发量 

 

nginx查看并发数量

原文:https://www.cnblogs.com/effortsing/p/10075769.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!