码迷,mamicode.com
首页 > 其他好文 > 详细

nginx查看并发数量

时间:2018-12-06 14:43:47      阅读:265      评论:0      收藏:0      [点我收藏+]

标签:The   status   load   url   read   nbsp   .com   waiting   curl   

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查看并发数量

标签:The   status   load   url   read   nbsp   .com   waiting   curl   

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

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!