2.2.1.1. windows系统
1、在nginx配置文件添加以下配置,启用ngx_status 配置
2、重新启动nginx服务
3、测试状态页
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
location /ngx_status
{
stub_status on;
access_log off;
}
2、重新启动nginx服务
3、测试状态页
# vim /usr/local/nginx/conf/nginx.conf
server{
listen 80;
server_name localhost;
index index.html index.htm index.php setup.php;
location /ngx_status
{
stub_status on;
access_log off;
}
}
#service nginx restart
#curl
Active connections: 1
server accepts handled requests
1 1 1
Reading: 0 Writing: 1 Waiting: 0
Was this page helpful?
