博客
关于我
nginx启动status状态配置
阅读量:510 次
发布时间:2019-03-07

本文共 2172 字,大约阅读时间需要 7 分钟。

nginx启动status状态配置

一、查看nginx是否安装--with-http_sub_module模块
[root@host-39-108-217-12 ~]# nginx -V    nginx version: nginx/1.10.2    built by gcc 4.8.5 20150623 (Red Hat 4.8.5-28) (GCC)     built with OpenSSL 1.0.2k-fips  26 Jan 2017    TLS SNI support enabled    configure arguments: --prefix=/usr/local/nginx --sbin-path=/usr/sbin/nginx --conf-path=/etc/nginx/nginx.conf --error-log-path=/var/log/nginx/error.log --http-log-path=/var/log/nginx/access.log --pid-path=/var/run/nginx.pid --lock-path=/var/run/nginx.lock --http-client-body-temp-path=/var/tmp/nginx/client --http-proxy-temp-path=/var/tmp/nginx/proxy --http-fastcgi-temp-path=/var/tmp/nginx/fcgi --http-uwsgi-temp-path=/var/tmp/nginx/uwsgi --http-scgi-temp-path=/var/tmp/nginx/scgi --user=nginx --group=nginx --with-pcre --with-http_v2_module --with-http_ssl_module --with-http_realip_module --with-http_addition_module --with-http_sub_module --with-http_dav_module --with-http_flv_module --with-http_mp4_module --with-http_gunzip_module --with-http_gzip_static_module --with-http_random_index_module --with-http_secure_link_module --with-http_stub_status_module --with-http_auth_request_module --with-mail --with-mail_ssl_module --with-file-aio --with-ipv6 --with-http_v2_module --with-threads --with-stream --with-stream_ssl_module
二、编辑nginx配置文件
[root@host-39-108-217-12 ~]# vi /etc/nginx/nginx.conf        location /nginx-status {             stub_status  on;             access_log   off;        }
三、重新加载nginx服务,测试访问
[root@host-39-108-217-12 nginx]# nginx  -t    nginx: the configuration file /etc/nginx/nginx.conf syntax is ok    nginx: configuration file /etc/nginx/nginx.conf test is successful    [root@host-39-108-217-12 nginx]# nginx  -s reload    http://39.108.217.12/nginx-status    Active connections: 6     server accepts handled requests     640 640 6747     Reading: 0 Writing: 1 Waiting: 5     active connections – 表示Nginx正在处理的活动连接数为6个     server  2 表示Nginx启动到现在共处理了640个连接    accepts 2 表示Nginx启动到现在共成功创建640次握手    handled requests 1 表示总共处理了6747次请求    reading — 读取客户端的连接数.     writing — 响应数据到客户端的数量     waiting — 开启 keep-alive 的情况下,这个值等于 active – (reading+writing), 意思就是 Nginx 已经处理完正在等候下一次请求指令的驻留连接.

转载地址:http://mgqjz.baihongyu.com/

你可能感兴趣的文章
Mac OS 12.0.1 如何安装柯美287打印机驱动,刷卡打印
查看>>
MangoDB4.0版本的安装与配置
查看>>
Manjaro 24.1 “Xahea” 发布!具有 KDE Plasma 6.1.5、GNOME 46 和最新的内核增强功能
查看>>
mapping文件目录生成修改
查看>>
MapReduce程序依赖的jar包
查看>>
mariadb multi-source replication(mariadb多主复制)
查看>>
MariaDB的简单使用
查看>>
MaterialForm对tab页进行隐藏
查看>>
Member var and Static var.
查看>>
memcached高速缓存学习笔记001---memcached介绍和安装以及基本使用
查看>>
memcached高速缓存学习笔记003---利用JAVA程序操作memcached crud操作
查看>>
Memcached:Node.js 高性能缓存解决方案
查看>>
memcache、redis原理对比
查看>>
memset初始化高维数组为-1/0
查看>>
Metasploit CGI网关接口渗透测试实战
查看>>
Metasploit Web服务器渗透测试实战
查看>>
MFC模态对话框和非模态对话框
查看>>
Moment.js常见用法总结
查看>>
MongoDB出现Error parsing command line: unrecognised option ‘--fork‘ 的解决方法
查看>>
mxGraph改变图形大小重置overlay位置
查看>>