找回密码
 立即注册
搜索
热搜: 活动 交友 discuz
查看: 1362|回复: 0

Nginx Stub_status查看状态

[复制链接]

304

主题

42

回帖

1346

积分

管理员

积分
1346
发表于 2021-4-16 17:36:54 | 显示全部楼层 |阅读模式
#开启Stub_status模块:
/usr/local/nginx/sbin/nginx -V
有--with-http_stub_status_module说明已经开启该模块

#Stub_status模块使用:
location /status {
   stub_status;
}

#结果分析:
1.Active connections: 2
1)The current number of active client connections including Waiting connections.
当前活跃连接数。

2.server accepts handled requests 131 131 397
1)accepts(The total number of accepted client connections)
接受的客户端连接的总数。

2)handled(The total number of handled connections)
处理的连接总数。

3)requests(The total number of client requests)
客户端请求的总数。

3.Reading: 0 Writing: 1 Waiting: 1
1)Reading:The current number of connections where nginx is reading the request header.
nginx正在读取请求头的当前连接数。

2)Writing:The current number of connections where nginx is writing the response back to the client.
nginx将响应写回客户端的当前连接数。

3)Waiting:The current number of idle client connections waiting for a request.
等待请求的当前空闲客户端连接数。

回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

QQ|Archiver|手机版|小黑屋|外汇论坛 ( 粤ICP备16021788号 )

GMT+8, 2024-11-25 05:56 , Processed in 0.057122 second(s), 19 queries .

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

快速回复 返回顶部 返回列表