多应用+插件架构,代码干净,二开方便,首家独创一键云编译技术,文档视频完善,免费商用码云13.8K 广告
[ngx_http_stub_status_module][1]提供了基本的状态信息,这部分信息应该限制访问 ## 示例 ~~~ location /nginx_status { stub_status on; access_log off; allow ip; deny all; } ~~~ 状态信息解读 ~~~ Active connections: 3 server accepts handled requests 154 154 153 Reading: 0 Writing: 1 Waiting: 2 ~~~ Active connections 活动的连接数(包括等待的连接) accepts 已经接收的连接数 handled 已经处理的连接数 requests 已处理的请求数 >[info]连接数不等于请求数每一个连接里面可能包含若干个请求 Reading nginx正在读取其请求首部的的连接个数 Writing nginx 正在读取其请求主体的连接数/正在处理请求内容的连接数/正在向其发送响应的连接数 Waiting 空闲的连接数,等待下一次请求 [1]:http://nginx.org/en/docs/http/ngx_http_stub_status_module.html