当前位置:网站首页>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开发全套学习资料》送给大家,初衷也很简单,就是希望帮助到想自学又不知道该从何学起的朋友,同时减轻大家的负担。添加下方名片,即可获取全套学习资料哦
边栏推荐
- 146. LRU cache
- Statement执行update语句
- 2022/08/01 学习笔记 (day21) 泛型和枚举
- IO stream basics
- 字符串分割函数strtok练习
- ERROR 1819 (HY000) Your password does not satisfy the current policy requirements
- bgp aggregation reflector federation experiment
- 第 45 届ICPC亚洲区域赛(上海)G-Fibonacci
- Don't concatenate strings with jOOQ
- Multi-feature fusion face detection based on attention mechanism
猜你喜欢

【目标检测】FCOS: Fully Convolutional One-Stage Object Detection

go笔记记录——channel

辨析内存函数memset、memcmp、memmove以及memcpy

好的期货公司开户让人省心省钱

Looking back at 5 recessionary times in history: How might this time be different?

MLX90640 红外热成像仪测温传感器模块开发笔记(十) 成果展示-红眼睛相机

bgp aggregation reflector federation experiment

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

poker question

ERROR 2003 (HY000) Can‘t connect to MySQL server on ‘localhost3306‘ (10061)
随机推荐
2022/08/01 Study Notes (day21) Generics and Enums
els block deformation judgment.
管理基础知识13
基于编码策略的电网假数据注入攻击检测
BGP first experiment
Difference between JSP out.print() and out.write() methods
【CodeTON Round 2 (Div. 1 + Div. 2, Rated, Prizes!)(A~D)】
NodeJs, all kinds of path
How to use the go language standard library fmt package
期货开户是否有资金门槛?
MySQL常用语句整理
Are test points the same as test cases?
An Enhanced Model for Attack Detection of Industrial Cyber-Physical Systems
Multi-feature fusion face detection based on attention mechanism
Unknown CMake command "add_action_files"
第 45 届ICPC亚洲区域赛(上海)G-Fibonacci
ICML 2022 || 局部增强图神经网络GNN,在 GCN 和 GAT基础上 平均提高了 3.4% 和 1.6%
管理基础知识11
管理基础知识12
MLX90640 红外热成像仪测温传感器模块开发笔记(十) 成果展示-红眼睛相机