nginx: [emerg] unknown directive "stub_status" in /usr/local/openresty/nginx/conf/conf.d/ngx_metric.conf:19


问题分析

Nginx没有添加modules/ngx_http_stub_status_module.o模块。

问题解决

没有安装的话,可以在tar包安装编译的时候添加如下参数:

# ./configure --prefix=/usr/local/nginx --with-http_stub_status_module


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM