首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >安装GeoIp2 NGINX模块错误

安装GeoIp2 NGINX模块错误
EN

Stack Overflow用户
提问于 2017-01-18 16:18:38
回答 1查看 612关注 0票数 1

我需要在我的宅地上安装module。当我首先在我的after.sh中重新编译nginx时,我得到了一个错误,即该模块不兼容二进制,我读到我必须使用所有原始标志Nginx进行./配置。

因此,我使用nginx -V获取所有标志,并将其复制和粘贴到after.sh中,但现在我收到了一些模块和其他模块需要库中缺少/config文件的错误,如:==> homestead-7: ./configure: error: the HTTP image filter module requires the GD library. ==> homestead-7: You can either do not enable the module or install the libraries.

这里给我带来了关于缺少文件的错误(可能是因为我从nginx下载的/nginx-1.11.5/ dir中甚至不存在/debian/目录。--add-dynamic-module=/build/nginx-Rrk92d/nginx-1.11.5/debian/modules/nginx-auth-pam --add-dynamic-module=/build/nginx-Rrk92d/nginx-1.11.5/debian/modules/nginx-echo --add-dynamic-module=/build/nginx-Rrk92d/nginx-1.11.5/debian/modules/nginx-upstream-fair --add-dynamic-module=/build/nginx-Rrk92d/nginx-1.11.5/debian/modules/ngx_http_substitutions_filter_module

任何人都有这样的经验,并能给我指点如何做正确的方式?

EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2017-03-11 06:50:01

在安装GeoIp2模块之前,我首先卸载了nginx,然后下载了最新的稳定版本,然后从源代码中重新编译了nginx,然后它就像一个魅力一样工作。

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/41724306

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档