GO第一篇:dep ensure报错:failed HTTP request to URL "http://golang.org/x/crypto?go-get=1"及解决后又出现git 连接拒绝

参考网上很多答案以及gihub上大神的操作

第一:failed HTTP request to URL "http://golang.org/x/crypto

国内网络无法get到这个网址,自备梯子,然而,用了代理还是无法解决

正确的解决方案:cmd运行下面两个命令:

                 set http_proxy=127.0.0.1:1235

                  set https_proxy=127.0.0.1:1235

    完美解决!!!

 

然而??

继续用git的时候,却发现报错

                  Failed to connect to 127.0.0.1 port 1235: Connection refused

很显然,是之前改了代理的端口。。。这个端口估计智只能用来连接http://golang.org/x/吧。。。

重新改回去默认的端口1080就好了

                 set http_proxy=127.0.0.1:1080

                  set https_proxy=127.0.0.1:1080

但是有些人改回去还是不行,建议参考:https://blog.csdn.net/chaobin6/article/details/80764127?utm_source=blogxgwz0

多半是你的代理软件设置的问题,再不行,去ie的internet选项中开启局域网代理,再配置一次。

你可能感兴趣的:(dep)