Nginx GeoIP模块使用
安装GeoIP库12345678910# 使用yum安装[root@xadmaster ~]# yum -y install geoip-devel geoip# 使用编译安装[root@xadmaster ~]# wget http://geolite.maxmind.com/download/geoip/api/c/GeoIP.tar.gz[root@xadmaster ~]# tar zxvf GeoIP.tar.gz[root@xadmaster ~]# cd GeoIP-1.4.8/[root@xadmaster ~]# ./configure [root@xadmaster ~]# make && make install[root@xadmaster ~]# echo '/usr/local/lib' > /etc/ld.so.conf.d/geoip.confldconfig
GeoLite免费数据库,下载地址:https://dev.maxmind.com/geoip/legacy/geolite/
1. 国家信息地址库, ...