Advanced Activity Monitoring
可用性监控进阶
Enable NGINX Open Source Stub Status
启用Nginx基础监控
location /stub_status {
stub_status;
allow 127.0.0.1;
deny all;
# Set IP restrictions as appropriate
}
Test your configuration by making a request for the status:
$ curl localhost/stub_status
Active connections: 1
server accepts handled requests
1 1 1
Reading: 0 Writing: 1 Waiting: 0