废话不多说,直接开讲
还多新手朋友在编译go的过程中是不是经常会遇到这样的报错
module ***: Get “https://proxy.golang.org/***”: dial tcp 172.217.160.113:443: connectex: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond.
你可以试着访问一下proxy.golang.org,怎么样,访问不了吧,没错,这是被我们伟大的长城防火墙给屏蔽了,你需要改成我们国内可用的代理地址

直接在命令行执行

go env -w GOPROXY=https://goproxy.cn

然后再次尝试执行你的go命令试试看,搞定了吧

安装插件是出现 如下错误提示, https fetch failed: Get https://golang.org/x/tools/cmd/gorename?go-get=1: dial tcp 216.239.37.1:443: connectex: A connection attempt failed because the connected party did not ... 准备入门go,在安装gin,执行go get -u github.com/gin-gonic/gin命令,却遇到如下报错: go get: module github.com/gin-gonic/gin: Get "https://proxy.golang.org/github.com/gin-gonic/gin/@v/list": dial tcp 216.58.200.241:443: connectex: A connection attempt failed because the con dial tcp 172.217.163.49:443: connectex: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond. [root@k8s-master wlf]# cat /etc/resolv.conf # Generated by NetworkManager search localdomain nameserver 192.168.190.2 [root@k8s-master wlf]# vi /etc/resolv.conf [root@k8s-master wlf]# cat /etc/resolv.conf # Generated by NetworkManager search localdomain git config --global http.sslVerify false 出现dial tcp 172.217.160.113:443: connect: connection refus... 问题描述: 从github上下载代表项目的时候,报module ***: Get “https://proxy.golang.org/***”: dial tcp 172.217.160.113:443: connectex: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed beca 1. go build, 提示以下错误: github.com/alecthomas/template@v0.0.0-20190718012654-fb15b899a751: Get "https://proxy.golang.org/github.com/alecthomas/template/@v/v0.0.0-20190718012654-fb15b899a751.mod": dial tcp 216.58.200.49:443: connectex: A connection attempt f.