使用go get提示dial tcp 172.217.24.17:443: connect: connection refused
解决方法:
换一个国内能访问的代理地址:https://goproxy.cn
执行命令:
go env -w GOPROXY=https://goproxy.cn,direct
重新执行命令
当使用Go语言下载依赖时遇到连接被拒绝的错误,可以尝试更换国内的代理地址,例如设置GOPROXY为https://goproxy.cn。执行`go env -w GOPROXY=https://goproxy.cn,direct`后,重新运行命令即可解决无法连接到国外仓库的问题。
使用go get提示dial tcp 172.217.24.17:443: connect: connection refused
换一个国内能访问的代理地址:https://goproxy.cn
执行命令:
go env -w GOPROXY=https://goproxy.cn,direct
重新执行命令

被折叠的 条评论
为什么被折叠?