标签:style http color io os ar 文件 sp div
编译Nginx的时候添加参数:--with-http_stub_status_module
cd nginx-{version}/ ./configure --prefix=/opt/nginx --with-http_stub_status_module --with-http_ssl_module make && make install
修改Nginx配置文件nginx.conf,在HTTP段中添加
vi /opt/nginx/conf/nginx.conf
server { listen 80; server_name localhost; location /nginx_status { #主要是这里代表根目录显示信息 stub_status on; access_log off; } }
浏览器访问监控页面地址http://{your IP}/nginx-status,显示如下
Active connections: 2 server accepts handled requests 8 8 33 Reading: 0 Writing: 1 Waiting: 1解析:
标签:style http color io os ar 文件 sp div
原文地址:http://my.oschina.net/idiotsky/blog/327238