1
2
3
4
5
6
7
server {
listen 8080;
access_log off;

location /nginx_status {
stub_status on;
}

这个时候请求,返回

1
2
3
4
5
6
7
curl localhost:8080/nginx_status

Active connections: 1
server accepts handled requests
7 7 6
Reading: 0 Writing: 1 Waiting: 0