Failed to connect to 127.0.0.1 port 1080: Connection refused拒绝链接错误

1、git拒绝链接缘由分析

使用git从远程仓库下载代码出现上述的错误是由于使用了proxy代理,因此要解决该问题,核心操做就是要取消代理git

2、解决方式

一、查看Linux当前有没有使用代理

经过git的配置文件查看有无使用代理(没有成功)
查询是否使用代理:github

git config --global http.proxy 

git config --global https.proxy

二、取消代理设置

方式一:经过git取消代理设置

git config --global --unset http.proxy

git config --global --unset https.proxy

方式二:经过系统命令取消代理

unset http_proxy

unset ftp_proxy

unset all_proxy

unset https_proxy

unset no_proxy

个人我的博客地址,欢迎访问
个人CSDN地址,欢迎访问
个人GitHub主页,欢迎访问web