Nginx status Nginx status configuration Nginx status module Nginx Nginxstatu

Source: Internet
Author: User
Nginx and PHP-FPM built a status page, for want to understand the status of Nginx and monitor nginx is very helpful. For subsequent Zabbix monitoring, we need to know what the Nginx status page is.

1. Enable Nginx status configuration

Add location to the default host or the host you wish to have access to.

1

2

3

4

5

6

7

8

9

10

11

Server {

Listen * : the Default_server ;

Server _Name_;

Location / Ngx_status

{

Stub_status on ;

Access_log off ;

#allow 127.0.0.1;

#deny all;

}

}

2. Restart Nginx

Please restart your nginx in accordance with your environment.

1

# Service Nginx Restart

3. Open the Status page

1

2

3

4

5

# Curl Http://127.0.0.1/ngx_status

Active Connections : 11921

Server accepts handled Requests

11989 11989 11991

Reading : 0 Writing : 7 Waiting : the

4. Nginx Status Detailed

Active connections– number of connected connections
A total of 11,989 connections were processed by the server accepts handled requests-, and 11,989 handshakes were successfully created, with a total of 11,991 requests processed
Reading-reads the number of connections to the client.
writing-number of response data to the client
waiting-The keep-alive is turned on, this value equals active– (reading+writing), meaning that Nginx has finished processing the host connection that is waiting for the next request instruction.

5. Complete

From https://www.ttlsa.com/nginx/nginx-status-detail/

The above describes the Nginx status, including the Status,nginx aspects of the content, I hope that the PHP tutorial interested in a friend helpful.

  • Contact Us

    The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

    If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.