当前位置:网站首页>goproxy.io 证书过期
goproxy.io 证书过期
2022-08-09 09:27:00 【草明】
如果出现以下错误
x509: certificate has expired or is not yet valid: current time is after 2021-09-25t00:00:00z
里面明显 https
的网址被修改了, 例如 github.com
被改成了 https://goproxy.io/github.com
, 这是使用了 go
的代理.
排查问题:
- 重启电脑, 然后执行
go env | grep GOPROXY
. 应该有goproxy.io
- 查找配置, 找到配置了
GOPROXY
的地方, 修改值, 例如GOPROXY=https://goproxy.cn,direct
- ~/.zshrc
- /etc/profile
- ~/.config/go/env
- 重启电脑
有时候直接在命令行里面设置环境变量也没有用, 即使使用 go env
查看已经改了, 也不行, 所以第一点就是重启电脑.
边栏推荐
- 真·鸡汤文
- web测试之功能测试常用的方法有哪几种?有什么要点要注意?
- 本体开发日记05-努力理解SWRL(中)
- Consolidation of Questionnaire Questions and Answers
- Venture DAO Industry Research Report: Macro and Classic Case Analysis, Model Summary, Future Suggestions
- 如何用数组实现环形队列
- The div simulates the textarea text box, the height of the input text is adaptive, and the word count and limit are implemented
- map去重代码实现
- 6.File类
- Domestic Google earth, terrain analysis seconds kill with the map software
猜你喜欢
随机推荐
Read file by byte and character_load configuration file
[Environmental Construction] tensorrt
【机器学习】网络爬虫实战详解
Global 19 Google Satellite Map Free View Download
如何用数组实现环形队列
JS报错-Uncaught TypeError: 'caller', 'callee', and 'arguments' properties may not be accessed on...
HD Satellite Map Browser
软件测试面试题目:请你列举几个物品的测试方法怎么说?
oracle查看表空间占用情况并删除多余表所占空间
你一定要看的安装及卸载测试用例的步骤及方法总结
测试计划包括哪些内容?目的和意义是什么?
Environment build onnxruntime 】
unittest测试框架原理及测试流程解析,看完绝对有提升
2.Collection接口
【分布式事务】
MySQL Leak Detection and Filling (2) Sorting and Retrieval, Filtering Data, Fuzzy Query, Regular Expression
RPC服务远程漏洞
Sweet alert
Ontology Development Diary 05-Strive to Understand SWRL (Part 2)
Onnx - environment build 】 【 tensorrt