gpt4 book ai didi

linux - Maxmind geoipupdate 不下载数据库

转载 作者:太空宇宙 更新时间:2023-11-04 12:32:18 24 4
gpt4 key购买 nike

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

Can't open /usr/local/share/GeoIP/GeoLite2-Country.mmdb.gz

GeoIP 目录存在于那个位置,它已经有一些来 self 尝试使用 GeoIP Python 库的其他东西的 .dat 文件,但是 .mmdb.gz 文件在运行命令之前或之后都不存在。这是我在 /usr/local/etc

中的配置文件
# 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 时是否可能遗漏了一个步骤?如何获取命令来检查和下载更新的数据库?

最佳答案

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

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

关于linux - Maxmind geoipupdate 不下载数据库,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/42982184/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com