ngx_http_stub_status_module模块提供状态信息.
在配置文件中添加配置
location = /basic_status {
stub_status;
}
检查一下配置文件没有问题
[root@localhost ~]# nginx -tc /etc/nginx/nginx.conf
nginx: the configuration file /etc/nginx/nginx.conf syntax is ok
nginx: configuration file /etc/nginx/nginx.conf test is successful
平滑重载
[root@localhost ~]# nginx -s reload -c /etc/nginx/nginx.conf
访问 , OK !
![](https://img.haomeiwen.com/i16926207/47a16a6d82ba4ff2.png)
网友评论