本文共 697 字,大约阅读时间需要 2 分钟。
为了确保应用以最佳性能和精度运行,需要清晰地了解有关其活动的监控指标。
NGINX 提供了多种监控选项,例如 stub 状态。
注:
博客:
启用 NGINX HTTP 服务器内 location 代码块中的 stub_status 模块:
location /stub_status { stub_status; allow 127.0.0.1; deny all; # 视情况设置 IP 限制} 完整示例
server { listen 200; server_name 127.0.0.1; #charset koi8-r; #access_log logs/host.access.log main; location / { root D:/test/; try_files $uri $uri/ /index.html; index index.html index.htm; } location /stub_status{ stub_status; allow 127.0.0.1; deny all; # 视情况设置 IP 限制 } error_page 500 502 503 504 /50x.html; location = /50x.html { root html; 转载地址:http://aujfk.baihongyu.com/