View Nginx Server Status configuration by browser submission: Junjie font: [Increase decrease] Type: Reproduced this article mainly introduces the browser view Nginx server state configuration method, this article explains the configuration method of opening Nginx-status, And the parameters of the server to do a detailed explanation, the need for friends can refer to the nextCopy CodeThe code is as follows:
Location/nginx-status {
Stub_status on;
#access_log/var/log/nginx/mmt_nginx_status.log;
Access_log off;
Allow 192.168.0.10;
Deny all;
#auth_basic "Nginxstatus";
}
Visit url:http://192.168.0.11/nginx-status
Results:
Copy CodeThe code is as follows:
Active connections:178
Server accepts handled requests
102547 102547 206588
reading:0 writing:38 waiting:140
Analytical:
Active connections: The number of active connections initiated against the backend (server).
The Server accepts handled Requests:nginx processed a total of 102,547 connections, successfully created 102,547 handshakes (proving that there was no intermediate failure) and processed 206,588 requests (averaging 29884/15392 per handshake) 1.94 data requests).
Reading:nginx the number of header messages read to the client.
Writing:nginx the number of header information returned to the client.
Waiting: When Keep-alive is turned on, this value equals active– (reading + writing), meaning that Nginx has finished processing and is waiting for the next request instruction to reside in the connection.
Therefore, in the case of high access efficiency, the request is processed quickly, the number of waiting is more normal. If the number of reading + writing is high, then the concurrent traffic is very large and is in process.
Finish
View Nginx Server Status configuration by browser