全网最新Nginx禁止国内IP地址访问网站
1.服务器安装依赖
yum install gperftools libxml2 libxml2-dev libxslt-devel gd-devel perl-devel perl-ExtUtils-Embed GeoIP GeoIP-devel GeoIP-data pcre-devel openssl openssl-devel libxslt-devel redhat-rpm-config.noarch
2.创建文件地址并下载所需服务
cd /usr/local/src
mkdir geoip2
mkdir tar
wget https://linuxhy.top/pptp/Nginx_Geoip2/libmaxminddb-1.6.0.tar.gz
wget https://linuxhy.top/pptp/Nginx_Geoip2/3.3.tar.gz
https://nginx.org/download/nginx-1.2x.x.tar.gz
wget https://nginx.org/download/nginx-1.20.1.tar.gz
3.安装libmaxminddb
cd /usr/local/src
cd libmaxminddb-1.6.0/
./configure && make && make