1. 查看是否安装检查状态模块; [root@localhost ~]# nginx -V nginx version: nginx/1.12.2 built by gcc 4.8.5 20150623 (Red Hat 4.8.5-36) (GCC) configure arguments: --prefix=/usr/local/nginx --with-http_sub_module 2. 如未安装,重新编译安装; Ø 检查状态模块;–with-http_stub_status_module [root@localhost ~]# cd /usr/local/src/nginx