nginx 状态信息主机
在nginx的配置文件中,添加status配置
location /nginx-status{
stub_status on;
access_log off;
allow 127.0.0.1;
allow 192.168.10.3; #zabbix server地址
deny all;
}
访问设置好的nginx-status链接
adb.helo.com/nginx-status,如图所示
Active connections:2
server accepts handled requests
7 7 32
Reading:0 Writing:1 Waiting:1
nginx status详细说明
Active connections 对后端发起的活动连接数;
server accepts nginx共处理了7个连接;
handled 成功创建了7次握手;
requests 总共处理了32请求。
Reading: nginx读取客户端的header数
Writing: nginx返回给客户端的header数
Waiting: nginx请求处理完成,正在等待下一请求指令的连接
本文出自 “青春邓勇” 博客,请务必保留此出处http://dengyong.blog.51cto.com/8409869/1895526
原文:http://dengyong.blog.51cto.com/8409869/1895526