首页 > 其他 > 详细

nginx: [emerg] unknown directive "stub_status" in /home/oscf/nginx/conf/conf.d/ngx_metric.conf:19

时间:2019-07-03 21:44:42      阅读:206      评论:0      收藏:0      [点我收藏+]

解压安装过程命令如下:

cd /home/oscf     #该目录下有nginx压缩包
mkdir nginx
tar -zxvf nginx-1.16.0.tar.gz
cd nginx-1.16.0
./configure --prefix=/home/oscf/nginx     #指定安装目录
make
make install

当执行最后一步  make install 时,报错

nginx: [emerg] unknown directive "stub_status" in /home/oscf/nginx/conf/conf.d/ngx_metric.conf:

原因是Nginx没有添加modules/ngx_http_stub_status_module.o模块,导致安装失败。

解决方法:

在执行configure配置的一步时添加参数,命令如下

./configure --prefix=/home/oscf/nginx --with-http_stub_status_module

 

nginx: [emerg] unknown directive "stub_status" in /home/oscf/nginx/conf/conf.d/ngx_metric.conf:19

原文:https://www.cnblogs.com/zjfjava/p/11129205.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!