Nginx and PHP-FPM built a status page, for want to understand the status of Nginx and monitor nginx is very helpful.
1. Enable Nginx status configuration
Add location to the default host or the host you wish to have access to
server { listen *:80 default_server; server_name _; location /ngx_status { on; off; #allow 127.0.0.1;#deny all; }}
2. Restart Nginx
Please restart your nginx in accordance with your environment.
# service nginx restart
3. Open the Status page
# curl http://127.0.0.1/ngx_status119211198911989119910742
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.
'). addclass (' pre-numbering '). Hide (); $ (this). addclass (' has-numbering '). Parent (). append ($numbering); for (i = 1; i <= lines; i++) {$numbering. Append ($ ('
'). Text (i)); }; $numbering. FadeIn (1700); }); });
The above describes the cookies must be enabled in order to login to enable the status of Nginx, including the content of the cookies must be enabled in order to log in, I hope that the PHP tutorial interested friends helpful.