Go

解决golang编译提示dial tcp 172.217.160.113:443: connectex: A connection attempt failed

image

解决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

      新开命令行重新编译,这样就成功了。


猜你喜欢

6 Comments

  • 香香球球

    逛逛~

    2020-12-30 06:31:58 回复

  • 佛布朗斯基

    @香香球球 欢迎光临~

    2020-12-30 06:32:27 回复

  • 香香球球

    @佛布朗斯基 哈哈~

    2020-12-30 10:33:51 回复

  • 香香球球

    @香香球球 哈喽

    2020-12-30 10:39:48 回复

文章评论