Zabbix monitoring website concurrency via Nginx State

Source: Internet
Author: User

First, open Nginx state

First, install nginx Execute command: Yum install Nginx Two, start nginx execution command: Systemctl start nginx Three, configure Nginx to open status 1, execute the command:vim/etc/nginx/2, restart Nginx service: Execute command: systemctl restart Nginx, Access nginx configuration Ngx_ Status page 1, open Browser, input: http://<nginx-server ip>/ngx_status2 , meaning Description: Active connections– connection number 1server accepts handled requests-a total of 2 connections, successfully created 2 handshake, a total of 3 requests reading-read the client's connection Number of writing-response data to the number of clients waiting-keep-alive is turned on, this value equals active– (reading+writing), meaning that Nginx has finished processing the next request instruction. Resident connections.

Second, test:

Curl-s http://xxx.xxx.xxx.xxx/ngx_status|awk ' nr==1{print $} '
#结果:

Third, the result test:

Iv. Other

Zabbix monitoring website concurrency via Nginx State

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.