当前位置:网站首页>GO GOPROXY代理设置
GO GOPROXY代理设置
2022-08-02 00:16:00 【m0_67393413】
一 背景:
当你执行go get命令的时候显示超时proxy.golang.org --> timeout
leyangjundeMacBook-Pro:photoleyangjun$ go get -u github.com/spf13/cobra
go get -u github.com/spf13/cobra
go get github.com/spf13/cobra: module github.com/spf13/cobra: Get https://proxy.golang.org/github.com/spf13/cobra/@v/list: dial tcp 142.251.10.141:443: i/o timeout
二:原因
https://proxy.golang.org/github.com/ 国内无法访问
三:换成国内可访问的地址,设置GOPROXY代理
go env -w GOPROXY=https://goproxy.cn,direct
go env -w GOSUMDB=off (关闭包的有效性验证)
go env -w GOSUMDB=“sum.golang.google.cn” (也可设置国内提供的sum 验证服务)
备注:-w 标记 要求一个或多个形式为 NAME=VALUE 的参数且覆盖默认的设置
先自我介绍一下,小编13年上师交大毕业,曾经在小公司待过,去过华为OPPO等大厂,18年进入阿里,直到现在。深知大多数初中级java工程师,想要升技能,往往是需要自己摸索成长或是报班学习,但对于培训机构动则近万元的学费,着实压力不小。自己不成体系的自学效率很低又漫长,而且容易碰到天花板技术停止不前。因此我收集了一份《java开发全套学习资料》送给大家,初衷也很简单,就是希望帮助到想自学又不知道该从何学起的朋友,同时减轻大家的负担。添加下方名片,即可获取全套学习资料哦
边栏推荐
猜你喜欢

nodeJs--各种路径
![[HCIP] BGP Small Experiment (Federation, Optimization)](/img/a2/0967200c69cff3b683dc0af6f314c8.png)
[HCIP] BGP Small Experiment (Federation, Optimization)

期货开户手续费的秘密成了透明

DFS详解

期货开户如何确定期货公司正规性?

什么是低代码(Low-Code)?低代码适用于哪些场景?

ERROR 2003 (HY000) Can‘t connect to MySQL server on ‘localhost3306‘ (10061)

实现删除-一个字符串中的指定字母,如:字符串“abcd”,删除其中的”a”字母,剩余”bcd”,也可以传递多个需要删除的字符,传递”ab”也可以做到删除”ab”,剩余”cd”。

Graphical LeetCode - 1161. Maximum Sum of In-Layer Elements (Difficulty: Moderate)

【软件工程之美 - 专栏笔记】34 | 账号密码泄露成灾,应该怎样预防?
随机推荐
After reshipment tencent greetings to monitor if the corresponding service does not exist by sc. Exe command to add services
A simple file transfer tools
含外部储能的电力系统暂态稳定分布式控制
uni-app project summary
JS中localStorage和sessionStorage
管理基础知识18
JSP out. The write () method has what function?
What is the function of the JSP out.println() method?
冒泡排序函数封装
管理基础知识12
如何期货开户和选择期货公司?
2022/08/01 学习笔记 (day21) 泛型和枚举
业务测试如何避免漏测 ?
Active Disturbance Rejection Control of Substation Inspection Robot Based on Data Drive
MySQL常用语句整理
els block boundary deformation processing
Kotlin协程:创建、启动、挂起、恢复
ROS dynamic parameters
JS中的防抖和节流
期货开户如何确定期货公司正规性?