Copy Code code 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 Code code 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 handled 102,547 connections, successfully creating 102,547 handshakes (proving that there were no failures), processing 206,588 requests (averaging 29884 per handshake) 15392 = 1.94 data requests). The
Reading:nginx the number of header information read to the client. The
Writing:nginx the number of header information returned to the client.
Waiting: When Keep-alive is turned on, this value is equal to active– (reading + writing), meaning that the nginx has been processed and is waiting for the next request instruction to reside in the connection.
Therefore, in the case of high efficiency, the request is quickly processed, the number of waiting is normal. If the number of reading + writing is high, the concurrent traffic is very large and is being processed.
(end)