首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >Maxmind geoipupdate未下载数据库

Maxmind geoipupdate未下载数据库
EN

Stack Overflow用户
提问于 2017-03-24 00:46:35
回答 1查看 2.2K关注 0票数 0

我刚刚在我的Ubuntu机器上安装了Maxmind的geoipupdate版本2.3.1。当我运行该命令时,它不会尝试下载最新的数据库,而是立即显示以下消息:

代码语言:javascript
复制
Can't open /usr/local/share/GeoIP/GeoLite2-Country.mmdb.gz

GeoIP目录位于该位置,并且它已经包含了一些来自我尝试使用GeoIP Python库的其他内容的.dat文件,但是在运行该命令之前或之后,.mmdb.gz文件都不存在。下面是我在/usr/local/etc中的配置文件

代码语言:javascript
复制
# Please see http://dev.maxmind.com/geoip/geoipupdate/ for instructions
# on setting up geoipupdate, including information on how to download a
# pre-filled GeoIP.conf file.

# Enter your user ID and license key below. These are available from
# https://www.maxmind.com/en/my_license_key. If you are only using free
# GeoLite databases, you make leave the 0 values.
UserId 999999
LicenseKey 000000000000

# Enter the product IDs of the databases you would like to update.
# Multiple product IDs are separated by spaces.
ProductIds GeoLite2-Country GeoLite2-City GeoLite-Legacy-IPv6-City GeoLite-Legacy-IPv6-Country 506 517 533

# The following are for the GeoLite Legacy databases. To update them,
# uncomment.
# ProductIds 506 517 533 GeoLite-Legacy-IPv6-Country GeoLite-Legacy-IPv6-City

# The remaining settings are OPTIONAL.

# The directory to store the database files. Defaults to /usr/local/share/GeoIP
# DatabaseDirectory /usr/local/share/GeoIP

# The server to use. Defaults to "updates.maxmind.com".
# Host updates.maxmind.com

# The desired protocol either "https" (default) or "http".
# Protocol https

# The proxy host name or IP address. You may optionally specify a
# port number, e.g., 127.0.0.1:8888. If no port number is specified, 1080
# will be used.
# Proxy 127.0.0.1:8888

# The user name and password to use with your proxy server.
# ProxyUserPassword username:password

# Whether to skip host name verification on HTTPS connections.
# Defaults to "0".
# SkipHostnameVerification 0

# Whether to skip peer verification on HTTPS connections.
# Defaults to "0".
# SkipPeerVerification 0

有没有可能我在安装geoipupdate时遗漏了一个步骤?如何获取命令来检查和下载更新的数据库?

EN

回答 1

Stack Overflow用户

发布于 2018-04-06 15:43:26

您应该在详细模式下运行该命令:geoipupdate -v

这样,您就会理解为什么文件没有更新(很可能是错误的DatabaseDirectory,或者可能是错误的ProductIDsEditionIDs,这将阻止其他下载的完成)。

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/42982184

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档