为nginx增加统计模块
location /NginxStatus {
stub_status on;
access_log off;
# auth_basic "NginxStatus";
# auth_basic_user_file conf/htpasswd;
}
./nginx -s reload 报错nginx: [emerg] unknown directive "stub_status" in /usr/local/nginx/conf/nginx.conf:54 说明编译安装时没有加--with-http_stub_status_module
重新加载nginx配置文件 ./nginx -s reload
原文:https://www.cnblogs.com/52py/p/11466338.html