- 下载更新【工具】geoipupdate
wget https://github.com/maxmind/geoipupdate/releases/download/v7.0.1/geoipupdate_7.0.1_linux_amd64.deb
- 安装下载的包
dpkg -i geoipupdate_7.0.1_linux_amd64.deb
- 安装可能的依赖
apt-get install -f
- 指定目录
geoipupdate -f /etc/GeoIP.conf
- 配置文件格式
AccountID YOUR_ACCOUNT_ID_HERE
LicenseKey YOUR_LICENSE_KEY_HERE
EditionIDs GeoLite2-Country GeoLite2-City
DatabaseDirectory /usr/local/share/abc.mmdb 你存放数据库的地址
- 执行更新
geoipupdate