1.nginx monitoring module
1) Compile nginx with the parameter –with-http_stub_status_module
#/usr/local/nginx/sbin/nginx -V ./configure –user=www –group=www –prefix=/usr/local/nginx –with-http_stub_status_module –with-http_ssl_mo ./configure –prefix=/usr/local –user=nginx –group=nginx –with-http_ssl_module –with-http_realip_module –http-client-body-temp-path=/usr/local/var/tmp/nginx/client –http-proxy-temp-path=/usr/local/var/tmp/nginx/proxy –http-fastcgi-temp-path=/usr/local/var/tmp/nginx/fcgi –http-scgi-temp-path=/usr/local/var/tmp/nginx/scgi –http-uwsgi-temp-path=/usr/local/var/tmp/nginx/uwsgi –with-http_geoip_module –with-http_stub_status_module
2) Modify the nginx configuration file and add the monitoring status configuration
Add the following code to the server block of nginx.conf
location /nginx_status […]
Recent Comments