欢迎来到尧图网

客户服务 关于我们

您的位置:首页 > 教育 > 幼教 > Failed to connect to 127.0.0.1 port 7890 after 0 ms: Connection refused解决方案

Failed to connect to 127.0.0.1 port 7890 after 0 ms: Connection refused解决方案

2025/6/17 12:52:06 来源:https://blog.csdn.net/buuliuda/article/details/143695275  浏览:    关键词:Failed to connect to 127.0.0.1 port 7890 after 0 ms: Connection refused解决方案

Failed to connect to 127.0.0.1 port 7890 after 0 ms: Connection refused解决方案

    • 先看当前项目的配置
    • 解决方案

先看当前项目的配置

git config --list

得到类似如下的输出
在这里插入图片描述

我的问题是之前给设置的代理是网址后面加代理地址 刚刚看了一堆人的解决方案去清除代理 然后我发现还是报错Failed to connect to 127.0.0.1 port 7890 after 0 ms: Connection refused
原因就是
http.https://github.com.proxy=http://127.0.0.1:7890
https.https://github.com.proxy=https://127.0.0.1:7890
这两行导致的

解决方案

所以我把这两行删除了

git config --global --unset http.https://github.com.proxy
git config --global --unset https.https://github.com.proxy

在这里插入图片描述
只留下了我自己的代理这两行后成果run了
http.proxy=http://xxx.xx.xxx.1:7890
https.proxy=http://xxx.xx.xxx.1:7890

版权声明:

本网仅为发布的内容提供存储空间,不对发表、转载的内容提供任何形式的保证。凡本网注明“来源:XXX网络”的作品,均转载自其它媒体,著作权归作者所有,商业转载请联系作者获得授权,非商业转载请注明出处。

我们尊重并感谢每一位作者,均已注明文章来源和作者。如因作品内容、版权或其它问题,请及时与我们联系,联系邮箱:809451989@qq.com,投稿邮箱:809451989@qq.com

热搜词