当前位置:网站首页>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 查看已经改了, 也不行, 所以第一点就是重启电脑.
边栏推荐
猜你喜欢

有返回值的函数

本体开发日记05-努力理解SWRL(下)

JS报错-Uncaught TypeError: 'caller', 'callee', and 'arguments' properties may not be accessed on...
选择黑盒测试用例设计方法的综合策略方案总结

The div simulates the textarea text box, the height of the input text is adaptive, and the word count and limit are implemented

Teach you how to get a 0.1-meter high-precision satellite map for free

makefile学习-解决目标文件输出路径问题

性能测试的基本概念是什么?做好性能测试需要掌握哪些知识?

本体开发日记02-sparql简单查询
软件测试面试题目:请你列举几个物品的测试方法怎么说?
随机推荐
HD Satellite Map Browser
Onnx - environment build 】 【 tensorrt
电脑硬件基础知识科普
Anti App so层对抗分析
软件测试的流程规范有哪些?具体要怎么做?
第三方免费开放API 获取用户IP 并查询其地理位置
What are the basic concepts of performance testing?What knowledge do you need to master to perform performance testing?
Command line query database
秒拍app分析
map去重代码实现
软件测试分析流程及输出项包括哪些内容?
接口测试的基础流程和用例设计方法你知道吗?
Ontology Development Diary 03 - When debugging is in progress
进入大厂的面试经验(P7)
3.List接口与实现类
7.FileFilter接口
软件测试外包公司怎么样?有什么好处和坏处?为什么没人去?
白盒测试的概念、目的是什么?及主要方法有哪些?
Jfinal loading configuration file principle
Teach you how to get a 0.1-meter high-precision satellite map for free