大网数据广告活动
服务器运维问答

Nginx and GeoLite2 not working

· 52CE 我爱测

Is Nginx official ngx_mod_http_geoip compatible with GeoLite2 databases ? I can't get them working, so I assume they are not compatible ?

问题原文

原帖链接 · user3448600 · CC BY-SA 3.0

Is Nginx official ngx_mod_http_geoip compatible with GeoLite2 databases ? I can't get them working, so I assume they are not compatible ?

社区高分解答

原帖链接 · Joe · CC BY-SA 4.0

ngx_mod_http_geoip is not compatible with GeoIP2 databases; you will need the ngx_http_geoip2_module instead. Note, however, that as of this writing the nginx distribution packages I'm aware of don't include the ngx_http_geoip2_module and you will need to compile NGINX from source and include ngx_http_geoip2_module. See these instructions for an example of building this for Ubuntu.

Disclaimer: I wrote these instructions.

摘自公开归档,保留原文语言,版式经整理,外部媒体与邮箱地址已移除。

资料来源与适用范围

资料来源
Server Fault
适用范围
以原帖系统、软件版本与发布日期为准(2017-07-31)
内容语言
中文;命令、路径和错误标识保留技术原文
本地收录日期
2026-11-15
授权说明
CC BY-SA 3.0 / CC BY-SA 4.0

正文与所需资源由本站本地存储。查看来源及更新记录 ↗

请按适用版本和实际日志确认原因;本站没有对每一种系统或设备逐项执行文中的操作。