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