GeoIP:更新国家/地区数据库
时间:2020-02-23 14:44:10 来源:igfitidea点击:
有更新免费的MaxMind GeoIP数据库的过程:
转到temp目录并获取最新数据:
cd /tmp wget -q http://geolite.maxmind.com/download/geoip/database/GeoLiteCountry/GeoIP.dat.gz
解压缩数据文件:
gzip -d GeoIP.dat.gz
将数据移动到适当的目录:
mv -f GeoIP.dat /usr/share/GeoIP/GeoIP.dat