一、问题

在用git下载东西时提示:

fatal: unable to access 'https:xxx: Failed to connect to chromium.googlesource.com port

或者

fatal: unable to access 'https:xxx': Failed to connect to 127.0.0.1 port 7890 after 2035 ms: Connection refused

二、原因

网络代理设置错误

三、解决办法:设置正确的网络代理

1、先关闭网络代理

git config --global --unset http.proxy

git config --global --unset https.proxy

2、查看自己VPN的网络代理

3、设置网络代理

git config --global http.proxy http://127.0.0.1:41091

git config --global https.proxy http://127.0.0.1:41091

 4、重新下载

 

Logo

腾讯云面向开发者汇聚海量精品云计算使用和开发经验,营造开放的云计算技术生态圈。

更多推荐