时间:2021-07-01 10:21:17 帮助过:120人阅读
--user=www --group=www --prefix=/usr/local/webserver/nginx 赋权用户www,用户组www,自定义安装路径 --with-http_stub_status_module 这个模块能够获取Nginx自上次启动以来的工作状态,支持snmp监控所需要的. 此模块非核心模块,需要在编译的时候手动添加编
location /nginx_status {stub_status on;access_log off;allow SOME.IP.ADD.RESS;deny all;}
location /nginx_status {stub_status on;access_log off;auth_basic “nginx_status”;auth_basic_user_file conf/htpasswd;}
Active connections: 291server accepts handled requests16630948 16630948 31070465Reading: 6 Writing: 179 Waiting: 106