首页 > 其他 > 详细

nginx 状态信息主机

时间:2017-02-07 17:05:41      阅读:227      评论:0      收藏:0      [点我收藏+]

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

nginx 状态信息主机

原文:http://dengyong.blog.51cto.com/8409869/1895526

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!