Home > Backend Development > PHP Tutorial > welcome to nginx nginx checks the number of concurrent connections

welcome to nginx nginx checks the number of concurrent connections

WBOY
Release: 2016-07-28 08:30:12
Original
1775 people have browsed it

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"; }
Copy after login


 nginx查看并发连接数
Add the above code to the server, and then enter in the browser

 nginx查看并发连接数

Analysis:

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.

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template