Nginx中的stub_status
模块主要用于查看Nginx
的一些状态信息.
本模块默认是不会编译进Nginx的,如果你要使用该模块,则要在编译安装Nginx时指定:
./configure --with-http_stub_status_module
一、查看已安装的 Nginx 是否包含 stub_status
模块
#/usr/local/nginx/sbin/nginx -V
如果包含 stub_status
模块,那么就可以进行下面的步骤了:
二、修改 Nginx 配置文件
server {
#添加如下配置
location /nginx-status {
stub_status on;
access_log off;
#加入访问限制
# allow 60.195.252.106;
# allow 60.195.249.83;
#deny all;
}
}
三、重启 Nginx
#/usr/local/nginx/sbin/nginx -s reload
四、相关数据说明
Active connections
: 对后端发起的活动连接数.
Server accepts handled requests
: Nginx总共处理了38810620个连接,成功创建38810620次握手(证明中间没有失败的),总共处理了298655730个请求.
Reading
: Nginx 读取到客户端的Header信息数.
Writing
: Nginx 返回给客户端的Header信息数.
Waiting
: 开启keep-alive的情况下,这个值等于 active – (reading + writing),意思就是Nginx已经处理完成,正在等候下一次请求指令的驻留连接.
所以,在访问效率高,请求很快被处理完毕的情况下,Waiting数比较多是正常的.如果reading +writing数较多,则说明并发访问量非常大,正在处理过程中.
分享到:
相关推荐
主要介绍了Nginx开启stub_status模块配置方法,Nginx中的stub_status模块主要用于查看Nginx的一些状态信息,本文讲解它的开启配置方法,需要的朋友可以参考下
本篇文章主要介绍了Nginx stub_status 监控模块的功能实现,小编觉得挺不错的,现在分享给大家,也给大家做个参考。一起跟随小编过来看看吧
官方tcp模块,配置stream {} 也可以代理tcp,--with-http_stub_status_module --with-stream https://blog.csdn.net/e_wsq/article/details/79408263 来自GitHub开源提交版及官方公布版,清单如下 nginx_tcp_proxy...
nginx_upstream_jvm_route 是一个 Nginx 的扩展模块,用来实现基于 Cookie 的 Session Sticky 的功能。 安装方法(进入Nginx源码目录): #patch -p0 < /path/to/this/directory/jvm_route.patch # ./configure -...
使用nginx -V 2>&1 | grep -o with-http_stub_status_module命令检测当前Nginx是否有status功能,如果输出ngx_http_stub_status_module则说明是有的,如果没有可以在编译时加上此模块。 默认情况下,status是关闭的...
主要给大家介绍了关于nginx添加ssl模块的相关资料,文中通过示例代码介绍的非常详细,对大家的学习或者工作具有一定的参考学习价值,需要的朋友们下面随着小编来一起学习学习许吧。
依赖模块: configure arguments: --prefix=/usr/local/nginx --with-...gzip_static_module --with-http_dav_module --with-http_flv_module
http_stub_status_module http_flv_module http_mp4_module http_gunzip_module http_gzip_static_module http_auth_request_module http_random_index_module http_secure_link_module mail http_ssl_module mail_...
在Nginx的插件模块中有一个模块stub_status可以监控Nginx的一些状态信息,默认安装可能没有这个模块,手动编译的时候加一下即可。 1. 模块安装 先使用命令查看是否已经安装这个模块: 代码如下:[root@ihxb123Z ...
nginx_upstream_jvm_route 是一个 Nginx 的扩展模块,用来实现基于 Cookie 的 Session Sticky 的功能。 安装方法(进入Nginx源码目录): #patch -p0 < /path/to/this/directory/jvm_route.patch # ./configure -...
./configure --prefix=/usr/local/nginx --with-http_stub_status_module --with-http_ssl_module --add-module=/usr/local/fastdfs-nginx-module/src/ 2.重新编译Nginx 在此位置重新执行上面的: ./configure --...
14.9 HTTP Stub Status模块 14.9.1 stub_status指令 14.10 HTTP Sub模块 14.11 HTTP Dav模块 14.12 Google Perftools模块 14.13 HTTP XSLT模块 14.14 HTTP Secure Link模块 14.15 HTTP Image Filter模块 第15章 ...
./configure --prefix=/usr/local/nginx --with-http_stub_status_module --with-http_ssl_module #配置 #--prefix指定安装目录 #--with-http_ssl_module安装https模块 #creating objs/Makefile 代表编译成功 make ...
configure arguments: –prefix=/usr/local/nginx –with-google_perftools_module –without-http_memcached_module –user=www –group=www –with-http_stub_status_module –with-http_sub_module –with
XCDNCentOS一键安装Nginx环境要求CentOS 6/7当前版本nginx/1.18已编译模块--with-stream--with-...
1. 查看是否安装检查状态模块; [root@localhost ~]# nginx -V nginx version: nginx/1.12.2 built by gcc 4.8.5 20150623 (Red Hat...–with-http_stub_status_module [root@localhost ~]# cd /usr/local/src/nginx
14.9 Http Stub Status模块 14.10 Http Sub模块 14.11 Http Dav模块 14.12 Google Perftools模块 14.13 Http XSLT模块 14.14 Http Secure Link模块 14.15 Http Image Filter模块 第15章 Nginx的邮件模块 ...
14.9 Http Stub Status模块 14.10 Http Sub模块 14.11 Http Dav模块 14.12 Google Perftools模块 14.13 Http XSLT模块 14.14 Http Secure Link模块 14.15 Http Image Filter模块 第15章 Nginx的邮件模块 15.1 Nginx...