美文网首页
7.ngx_http_stub_status_module模块学

7.ngx_http_stub_status_module模块学

作者: 黄刚刚 | 来源:发表于2019-06-23 17:40 被阅读0次

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 !

相关文章

网友评论

      本文标题:7.ngx_http_stub_status_module模块学

      本文链接:https://www.haomeiwen.com/subject/diwoqctx.html