GeoIP Legacy Country Database Installation Instructions
Step 1 – 下载数据库 database
wget –N http://geolite.maxmind.com/download/geoip/database/GeoLiteCountry/GeoIP.dat.gz |
Step 2 – 解压缩数据 |
gunzip GeoIP.dat.gz
mv GeoIP.dat /usr/local/share/GeoIP/
当然还有其他csv格式能导入到数据库Learn more
Step 3 –查询数据
官方提高了了 API ,可用于大部分语言。 Learn more