-
Notifications
You must be signed in to change notification settings - Fork 188
Install Example Debian Bookworm
Daniel Drexlmaier edited this page Jun 12, 2023
·
1 revision
Welcome to the ngx_http_geoip2_module wiki!
Download Nginx Source
nginx_ver=`nginx -v 2>&1 | awk -F/ '{print $2}'`
wget http://nginx.org/download/nginx-$nginx_ver.tar.gz
tar xvzf nginx-$nginx_ver.tar.gz
Compile from Source
apt update
apt -y install libmaxminddb0 libmaxminddb-dev mmdb-bin
cd /opt
wget https://github.com/leev/ngx_http_geoip2_module/archive/3.4.zip
unzip 3.4.zip
nginx_ver=`nginx -v 2>&1 | awk -F/ '{print $2}'`
cd nginx-$nginx_ver
./configure --with-compat --add-dynamic-module=../ngx_http_geoip2_module-3.4
make modules
cp objs/ngx_http_geoip2_module.so /etc/nginx/modules