在nginx安装时添加
--with-http_stub_status_module
配置:
进入nginx.conf
新建一个location 模块
location /status {
stub_status on;
access_log off;
allow 174.16.10.110;
deny all;
}