用于配置到 nginx 的 GeoIP

Mar*_*lin 10 configuration nginx geoip

我正在尝试将 geoip 编译到 nginx 中。这样做时,./configure --with-http_geoip_module我收到以下错误。

./configure: error: the GeoIP module requires the GeoIP library.
You can either do not enable the module or install the library.
Run Code Online (Sandbox Code Playgroud)

我已经尝试了任何组合来尝试使用 apt-get 为 nginx 找到 geoip 模块,但我没有运气。如果有人能指出我正确的方向。

Mic*_*ton 14

root@ip-10-112-39-42:~# apt-cache search geoip
....
libgeoip-dev - Development files for the GeoIP library
....
root@ip-10-112-39-42:~# apt-get install libgeoip-dev
Run Code Online (Sandbox Code Playgroud)