How to view Nginx running status and related property description.
Need to see if Nginx has loaded the Http_stub_status_module module
/usr/sbin/nginx-v viewing the installation status of Nginx
nginx.conf Add:
Location/status {
Stub_status on;
Access_log off;
}
Access Address: Http://yours/status
You will see the following information:
Active connections:557
Server accepts handled requests
36573075 36573075 43806112
Reading:3 writing:16 waiting:538
which
Active connections-The number of active connections initiated on the backend.
Server accepts handled requests-Nginx handled a total of 36,573,075 connections, successfully created 36,573,075 handshake (equal to the middle without failure), processed a total of 43,806,112 requests ( Averaged 1.2 data requests per handshake).
Reading--The number of header information that Nginx reads to the client.
Writing--The number of header information returned to the client by Nginx.
Waiting--when keep-alive is turned on, this value is equal to active-(reading + writing), meaning that Nginx has finished processing the resident connection that is waiting for the next request instruction.
How to view Nginx running status and related property description