解决git下载出现:Failed to connect to 127.0.0.1 port 1080: Connection refused拒绝连接错误
1、查看有没有代理
env|grep -I proxy
2、输入下列代码解决问题
export http_proxy=""export https_proxy=""export HTTP_PROXY=""export HTTPS_PROXY=""
unset http_proxy
unset ftp_proxy
unset all_proxy
unset https_proxy
unset no_proxy
参考:https://blog.csdn.net/weixin_41010198/article/details/87929622