nginx工作状态监控
By skyshappiness Posted 2017-12-10 11:59:13 In

一、背景

    直观的了解目前 nginx 的状态


二、操作方法

    1、编译安装时添加参数 --with-http_sub_status_module

    2、配置:

        location /NginxStatus {

            stub_status on;                          #状态[on | off]
            access_log off;                           #权限状态

            allow IP_ADDRESS;                    #允许IP设置

            deny all;                                    #不允许
        }

    3、访问效果:

        

    4、解释:

        active connections:                                    活跃链接

        server    accepts   handled   requests           不做解释

        reading writing  waiting                              不做解释

友情链接
联系方式
  • 邮箱 / E-mail:121388038@qq.com