摘要: 通过配置nginx.conf文件来实现对Nginx状态信息的监控。1.配置nginx.confvim /usr/local/nginx/conf/nginx.conf再server块配置项中添加状态监控代码:location /nginx-status { stub_status on; #Nginx状态监控配置 access_log off;}2.编译模块上述代码中的stub_status模块是用来查看Nginx的状态信息,但是它默认是不会编译进Nginx的,所以要在编译安装Nginx时指定:./configure --prefix=/usr/local/nginx --... 阅读全文
posted @ 2013-12-22 16:47 七年之后 阅读(319) 评论(0) 推荐(0) 编辑