当前位置: 代码迷 >> 综合 >> git下载错误:Failed to connect to 127.0.0.1 port 1080: Connection refused拒绝连接错误
  详细解决方案

git下载错误:Failed to connect to 127.0.0.1 port 1080: Connection refused拒绝连接错误

热度:50   发布时间:2023-12-27 21:56:49.0

解决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

  相关解决方案