先奉上官网地址。
简单来说,这个模块主要作用是提供对基本信息状态的访问。
示例
cd /etc/nginx/conf.d
sudo vim default.conf
加入如下模块

测试参数格式,重启nginx
sudo nginx -tc /etc/nginx/nginx.conf//测试配置文件是否正确
sudo systemctl stop nginx
sudo systemctl start nginx
访问http://ip:port/mystatus
得到界面如下

Active connections
:当前活动客户端连接的数量,包括等待连接。accepts
:接受的客户端连接的总数。handled
:已处理连接的总数。通常,参数值与‘accept’相同,除非达到了某些资源限制(例如, the worker_connections limit)。requests
:客户机请求的总数。
网友评论