1. There are two ways to check the number of concurrent connections in nginx. One is to configure it in the nginx.config file and then view it through the browser. The other is to use the command. I use windows to use it, so I use the browser. The method is more convenient.
location /status { stub_status on; access_log logs/status.log; auth_basic "NginxStatus"; }
Add the above code to the server, and then enter in the browser
Active connections //The number of active connections currently being processed by Nginx.
server accepts handledrequests //A total of 22 connections were processed, 22 handshakes were successfully created, and a total of 64 requests were processed.
Reading //nginx reads the number of header information from the client.
Writing //The number of Header information returned by nginx 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 resident connection that is waiting for the next request command
The above introduces welcome to nginx nginx to check the number of concurrent connections, including the content of welcome to nginx. I hope it will be helpful to friends who are interested in PHP tutorials.