MaxMind 拉动 Geolite2 得到 401 Unauthorized

jg3*_*jg3 4 geoip maxmind freegeoip geolite2 geoip2

Geolite2 访问权限于 12 月 30 日发生变化。

今天我注册了一个 Maxmind 帐户,注册了一个许可证密钥(两个密钥都表示“此密钥会用于 GeoIP 更新吗?”,另一个则不会)..现在每次我输入时都会收到 401:

smachine:~# wget "https://download.maxmind.com/app/geoip_download?edition_id=GeoLite2-ASN-CSV&token=n3fU000000000000&suffix=zip"
--2020-01-13 00:37:23--  https://download.maxmind.com/app/geoip_download?edition_id=GeoLite2-ASN-CSV&token=n3fU000000000000&suffix=zip
Resolving download.maxmind.com (download.maxmind.com)... 104.16.37.47, 104.16.38.47, 2606:4700::6810:252f, ...
Connecting to download.maxmind.com (download.maxmind.com)|104.16.37.47|:443... connected.
HTTP request sent, awaiting response... 401 Unauthorized

Username/Password Authentication Failed.
smachine:~#
Run Code Online (Sandbox Code Playgroud)

你知道我在这里做错了什么吗?

小智 5

如果您从 shell 脚本使用 wget 或 curl,请务必引用 URL。

顺便说一句,如果您不是 root 用户,请在命令之前使用 sudo。