Nginx模块讲解_http_stub_status_module

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/longgeqiaojie304/article/details/84986268

Nginx模块讲解_http_stub_status_module

1、http_stub_status_module详解

(1)http_stub_status_module作用

(2)举例

location = /basic_status {

    stub_status;

}

This configuration creates a simple web page with basic status data which may look like as follows:

Active connections: 291

server accepts handled requests

 16630948 16630948 31070465

Reading: 6 Writing: 179 Waiting: 106

 

2、stub_status语法讲解

Syntax:

stub_status;

Default:

Context:

server, location

3、stub_status配置

4、访问配置好的location

5、Nginx客户端状态参数详解

    The following status information is provided:

(1)Active connections-活跃连接数

        The current number of active client connections including Waiting connections.

(2)accepts-已接受的客户端连接总数

        The total number of accepted client connections.

(3)handled-已处理的连接总数

        The total number of handled connections. Generally, the parameter value is the same as acceptsunless some resource limits have been reached (for example, the worker_connections limit).

(4)requests-客户端连接总数

        The total number of client requests.

(5)Reading-读取请求头的当前连接数

        The current number of connections where nginx is reading the request header.

(6)Writing-将响应写回客户端的当前连接数

        The current number of connections where nginx is writing the response back to the client.

(7)Waiting-等待请求的当前空闲客户端连接数

        The current number of idle client connections waiting for a request.

猜你喜欢

转载自blog.csdn.net/longgeqiaojie304/article/details/84986268
今日推荐