【问题标题】:homestead install GeoIp2 NGINX module errorshomestead 安装 GeoIp2 NGINX 模块错误
【发布时间】:2017-06-03 02:52:48
【问题描述】:

我需要在我的 Homestead 上安装 https://github.com/leev/ngx_http_geoip2_module。 当我首先在我的 after.sh 中重新编译 nginx 时,我收到一个模块不二进制兼容的错误,我读到我必须使用编译 Nginx 的所有原始标志执行 ./configure。

所以我使用 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.

这些在这里给了我有关丢失文件的错误(可能是因为 /debian/ 目录甚至不存在于 /nginx-1.11.5/ 目录中,我从 nginx 下载。 --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

任何人都有这种事情的经验,可以给我指点如何以正确的方式做到这一点?

【问题讨论】:

标签: php laravel nginx homestead geoip2


【解决方案1】:

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

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2021-09-16
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2016-06-14
    相关资源
    最近更新 更多