zoukankan      html  css  js  c++  java
  • 开启Nginx监控 with-http_stub_status_module

     1、开启监控with-http_stub_status_module

    ./configure  --with-openssl=/usr/local/ssl  --with-http_stub_status_module

    make & make install

    2、查看nginx的版本

    ./nginx -V

    可以看到配置参数已经有了with-http_stub_status_module

    3、配置

    vi  /usr/local/nginx/conf/nginx.conf

    4、访问 abc.xxx.com/nginx_status

    页面的参数介绍

    Active connections: 1当前活动的连接数

    server accepts handled requests

    2 2 2

    2 总连接数connection

    2 成功的连接数connection 失败连接=(总连接数-成功连接数)

    2 总共处理的请求数requests

    Reading: 0 Writing: 1 Waiting: 0

    Reading: 0 读取客户端Header的信息数 请求头

    Writing: 1 返回给客户端的header的信息数 响应头

    Waiting: 0 等待的请求数,开启了keepalive

  • 相关阅读:
    LeetCode 225. 用队列实现栈 做题笔记
    杨辉三角
    字母图形
    01字符串
    圆的面积
    饮料和啤酒
    进制转换
    从今天起 复习算法
    乘法群
    Paillier同态加密的介绍以及c++实现
  • 原文地址:https://www.cnblogs.com/linlf03/p/11241230.html
Copyright © 2011-2022 走看看