Go
解决golang编译提示dial tcp 172.217.160.113:443: connectex: A connection attempt failed
解决golang编译提示dial tcp 172.217.160.113:443: connectex: A connection attempt failed
最近在捣鼓beego框架,运行项目后发现报下面这个错
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.
然后自己网上查询了下报这个错的原因,可能是因为国内环境的原因,但是我也使用了加持功能,也还是不能访问,最终通过输入以下命令,最终解决
go env -w GOPROXY=https://goproxy.cn
新开命令行重新编译,这样就成功了。
0条评论