geoip - MaxMind 拉 Geolite2 得到 401 Unauthorized
问题描述
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:~#
有什么想法我在这里做错了吗?
解决方案
想通了...我没有注意https://dev.maxmind.com/geoip/geoipupdate/#Direct_Downloads上的说明,其中说您需要将 token= 更改为 license_key= ...一旦我这样做了按预期工作。
推荐阅读
- eigen - 复制向量的一个特征矩阵
- sql - MS Access 类似查询,结果中带有 #
- hibernate - EntityManagerFactory 注入
- json - 在 PowerShell 中使用来自 CSV 的数据修改 JSON 文件
- java - 未经检查的演员表:'java.lang.Class
>' 到 'java.lang.Class - postgresql - 创建带有视图定义转储的 SQL - 排序视图以避免依赖问题
- ionic-framework - 动态设置离子选择项的默认值
- php - 使用 utf8 格式的值传输 json 中的加密数据
- python - 如何在 OpenTripPlanner 中实时使用 gtfs
- ruby - Ruby 中的括号和 if 语句