苏醒 苏醒
  • 首页
  • WP主题
  • WP插件
  • WP教程
  • 是日一记
  • 博客
    • 留言
    • 唠叨
    • 盆友圈
首页 › 博客 › 解决 GitHub Failed to connect to 127.0.0.1 port 7890 after 5 ms: Connection refused

解决 GitHub Failed to connect to 127.0.0.1 port 7890 after 5 ms: Connection refused

suxing
2022-08-22 13:17:18

查询下代理,如果有,就取消。然后重新设置代理端口即可。

1、查询代理

 env|grep -i proxy

2、有

通过系统命令取消代理
unset http_proxy
unset https_proxy
unset all_proxy
通过git取消代理设置
git config --global --unset http.proxy
git config --global --unset https.proxy
git config --global https.proxy http://127.0.0.1:1080
git config --global https.proxy https://127.0.0.1:1080
git config --global --unset http.proxy
git config --global --unset https.proxy
npm config delete proxy
#只对github.com
git config --global http.https://github.com.proxy socks5://127.0.0.1:1080

#取消代理
git config --global --unset http.https://github.com.proxy

3、再次查询

git config --global http.proxy #查看git的http代理配置
git config --global https.proxy #查看git的https代理配置
git config --global -l #查看git的所有配置

4、如果没有就重新设置代理端口

git config --global http.proxy 127.0.0.1:1087
git config --global https.proxy 127.0.0.1:1087
#使用socks5代理(推荐)
git config --global http.https://github.com.proxy socks5://127.0.0.1:1080
#使用http代理(不推荐)
git config --global http.https://github.com.proxy http://127.0.0.1:1080
2
0
suxing
每天清晨有多少双眼睛睁开,有多少人的意识苏醒过来,便有多少个世界。
赞赏
suxing
WordPress 赛博朋克图片主题:Vanilla 主题
上一篇
mac OS 软件分享:Hidden Bar
下一篇

评论 (0)

取消
    发表评论

猜你喜欢

  • 为什么 NASA 选择 WordPress 来改版官网
  • WordPress 如何移除/更改密码保护文章的标题前缀“密码保护:”
  • nicetheme 春节活动|新年大吉大利!开通会员,最高返 588 红包券,主题免费换购,一次回本!
  • 想做个好看好用的知识库网站?用 WordPress主题也行
  • 完美解决因谷歌翻译退出中国市场,Chrome 网页翻译无法使用的问题

suxing

每天清晨有多少双眼睛睁开,有多少人的意识苏醒过来,便有多少个世界。
201
文章
289
评论
306
获赞
suxing

我用的 WordPress 主题

2021 年单栏 WordPress 主题

  • 栏目推荐
  • 文章榜单
  • 标签云
  • 留言板
  • 盆友圈
Copyright © 2012-2023 苏醒. Designed by nicetheme.
  • 首页
  • 主题
  • 教程
  • 博客
  • 唠叨
  • 留言
  • 是日一记
  • 标签云
  • 栏目推荐