nginx status nginx status configuration nginx status module nginx nginxstatu

WBOY
Release: 2016-07-29 08:53:00
Original
1028 people have browsed it

nginx has a built-in status page like php-fpm, which is very helpful for understanding the status of nginx and monitoring nginx. For subsequent zabbix monitoring, we need to first understand what the nginx status page is.

1. Enable nginx status configuration

Add location to the default host or the host you want to access.

1

234567891011

server{

listen *:80default_server;

server_name_;

location /ngx_status

​​​​{

​​​​​​stub_status on;

                                          all; }

}

2. Restart nginx

Please restart your nginx according to your environment

1

# service nginx restart

3. Open the status page

1

2

4

5writing - the number of response data to the client waiting - when keep-alive is turned on, this value is equal to active - (reading+writing), which means that Nginx has finished processing the residence and is waiting for the next request instruction. Connect.

# curl http://127.0.0.1/ngx_status

Active

connections

:
11921

server

accepts handled requests11989

1198911991Reading:

0Writing: 7

Waiting:42 4. Detailed explanation of nginx status active connections – the number of active connections

server accepts handled requests – a total of 11989 connections were processed, 11989 handshakes were successfully created, and a total of 11991 requests were processed reading – reading customers The number of connections to the client.
5. Complete

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

The above has introduced nginx status, including status and nginx content. I hope it will be helpful to friends who are interested in PHP tutorials.



Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!