当前位置: 代码迷 >> 综合 >> go mod dial tcp 216.239.37.1:443: connectex: A connection attempt failed
  详细解决方案

go mod dial tcp 216.239.37.1:443: connectex: A connection attempt failed

热度:10   发布时间:2024-02-08 00:50:35.0

最近 系统坏了 从新配go环境
用go mod 时出现dial tcp 216.239.37.1:443: connectex: A connection attempt failed这种错误 查询无果

在这里插入图片描述
最后是因为set GOSUMDB=sum.golang.org
先go env 看 GOSUMDB 的配置

go env -w GOSUMDB=off
把他关掉就好了
代理推荐
go env -w GOPROXY=https://goproxy.cn,direct
用go mod 快,不用翻墙

  相关解决方案