苏醒 苏醒
  • 首页
  • 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

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
0
suxing
每天清晨有多少双眼睛睁开,有多少人的意识苏醒过来,便有多少个世界。
赞赏
suxing

评论 (0)

返回
    发表评论

猜你喜欢

  • nicetheme 春节活动|新年大吉大利!开通会员,最高返 588 红包券,主题免费换购,一次回本!
  • 想做个好看好用的知识库网站?用 WordPress主题也行
  • 完美解决因谷歌翻译退出中国市场,Chrome 网页翻译无法使用的问题
  • Taro小程序项目编译警告chunk common [mini-css-extract-plugin]
  • mac OS 软件分享:Hidden Bar
suxing
每天清晨有多少双眼睛睁开,有多少人的意识苏醒过来,便有多少个世界。
197
文章
289
评论
306
获赞
suxing

我用的 WordPress 主题

2021 年单栏 WordPress 主题

  • 首页
  • WP主题
  • WP插件
  • WP教程
  • 是日一记
  • 博客
Copyright © 2012-2023 苏醒. Designed by nicetheme.
  • 首页
  • 主题
  • 教程
  • 博客
  • 唠叨
  • 留言
  • 是日一记