Nginx 配置之开启状态检查
Nginx 大约 670 字查看是否安装所需模块
--with-http_stub_status_module
nginx -V
如若未安装改模块,需重新编译安装
./configure --with-http_stub_status_module
make & make install
参考配置
location /ngx_status {
allow 127.0.0.1; #允许的IP
deny all;
stub_status on;
access_log off;
}
页面返回的信息
Active connections: 2 server | accepts | handled requests :---:|:---:|:---: 72257 | 72257 | 81307 Reading: 0 Writing: 1 Waiting: 1
Active connections: 2 表示Nginx正在处理的活动连接数2个。
server 72257 表示Nginx启动到现在共处理了72257个连接。
accepts 72257 表示Nginx启动到现在共成功创建72257次握手。
handled requests 81307 表示总共处理了81307次请求。
Reading:0 读取客户端的连接数
Writing:1 响应数据到客户端的数量
Waiting:1 已经处理完正在等候下一次请求指令的驻留链接(开启keep-alive的情况下,这个值等于Active-(Reading+Writing))
阅读 2002 · 发布于 2019-03-21
————        END        ————
Give me a Star, Thanks:)
https://github.com/fendoudebb扫描下方二维码关注公众号和小程序↓↓↓

昵称:
随便看看
换一批
-
HTML 自定义表单验证信息阅读 864
-
PHP 关闭 X-Powered-By 信息阅读 1277
-
Linux 添加 iptables 防火墙规则阅读 2003
-
JVM:运行时数据区之虚拟机栈阅读 472
-
Java Lombok @RequiredArgsConstructor 注解阅读 1002
-
Spring Boot 3 record 作为配置类设置默认值阅读 32
-
Mircosoft Edge 默认搜索引擎更改无效解决办法阅读 5503
-
Windows 平台 lua-resty-upload 上传的文件无法打开阅读 1592
-
MySQL 查询去重阅读 1880
-
MongoDB 提示 None of the hosts for replica set could be contacted阅读 2403