Nginx status详解

1. 启用nginx status配置

server {
        listen *:80 default_server;
        server_name _;
        location /ngx_status
          {
            stub_status on;
            access_log off;
            #allow 127.0.0.1;
            #deny all;
          }
}

2.重启nginx

service nginx restart

3. 打开status页面

active connections – 活跃的连接数量
server accepts handled requests — 在nginx启动以来总共处理了28114739个连接 , 成功创建28114739次握手, 总共处理了28152608个请求
reading — 读取客户端的连接数.
writing — 响应数据到客户端的数量
waiting — 开启 keep-alive 的情况下,这个值等于 active – (reading+writing), 意思就是 Nginx 已经处理完正在等候下一次请求指令的驻留连接.

原文地址:https://www.cnblogs.com/rutor/p/10250179.html