苏醒 苏醒
  • 首页
  • WP主题
  • WP插件
  • WP教程
  • 是日一记
  • 博客
    • 留言
    • 唠叨
    • 盆友圈
    • 栏目推荐

suxing

管理员
每天清晨有多少双眼睛睁开,有多少人的意识苏醒过来,便有多少个世界。
IP归属地: 广东
文章
214
评论
236
suxing
2022-08-22 13:17:18 广东

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

文章字数:899
阅读时间: 3 分钟
智能摘要 DeepSeek
本文介绍了如何查询、取消和重新设置代理端口。首先通过命令查询代理设置,若存在则取消系统及Git的代理配置,并清除相关环境变量。取消后再次查询确认,若无代理则重新设置Git的HTTP/HTTPS代理端口,推荐使用SOCKS5代理。

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

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
  • 博客
等 人表示很赞
16,521
0

评论

空空如也
suxing
suxing
2018-12-30 16:02:56 广东

推荐 WordPress SEO 懒人法,三分种搞懂 Google 在想什么?

智能摘要 DeepSeek SEO是帮助Google更快、更准确找到用户需求的工具,尤其适合WordPress站长。懒人SEO法强调:写原创高质量内容、保持网站活跃度、合理使用外链,无需复杂操作,简单方法即可提升搜索引擎排名。 很多人 ...
  • 博客
  • WordPress SEO
2,925 0
suxing
suxing
2014-04-21 13:08:00 广东

推荐 王石:致年轻创业者的三个锦囊

智能摘要 DeepSeek 本文总结:王石强调创业应以好奇心为导向,避免急于确立目标,而是要明确自己的人生方向。万科通过多元化转型、弱关系文化、混合所有制等智慧,展现了企业成功的关键。 本文由虎嗅实习生 韩依民协助撰写 上周五(4月1 ...
  • 博客
5,688 0
suxing
suxing
2021-02-09 10:38:18 广东

推荐 WordPress 主题 PandaPRO 用户中心 ApolloONE 积木更新至 2.0.0

智能摘要 DeepSeek 本主题更新包含新增功能:邮箱登录、微信公众号扫码登录、谷歌和 GitHub 一键登录,注册协议及隐私政策页面更新,支持语言切换。优化方面简化邮箱注册流程,提升用户体验,要求更新插件以避免兼容性问题。问题方面解 ...
  • 博客
3,807 0
suxing
suxing
2016-01-10 1:24:37 广东

推荐 说好的剁手,还是没忍住

智能摘要 DeepSeek 用户因主板内存槽问题无法双通道使用,导致电脑无法正常开机显示,卖家返修需4周时间。期间使用媳妇的华硕U303笔记本,该笔记本做工扎实,但无固态硬盘,且内存不足,导致性能提升有限。最终决定购买8G内存和固态硬盘 ...
  • 博客
  • GRACE主题
  • 三星850 EVO
  • 华硕u303
7,164 6
suxing
suxing
2015-10-21 9:52:41 广东

推荐 微软宣布从明年1月起停止支持旧版本IE浏览器

智能摘要 DeepSeek 微软计划于明年1月停止对旧版IE浏览器的支持,用户需在此前升级至最新版本。Windows Vista SP2用户需升级至IE9,Windows 7、8.1及10用户需升级至IE11。这一政策将减少旧IE的使用 ...
  • 博客
10,025 1

我用的 WordPress 主题

2021 年单栏 WordPress 主题

Copyright © 2012-2026 苏醒. All rights reserved. Designed by nicetheme.
  • 首页
  • 主题
  • 教程
  • 博客
  • 唠叨
  • 留言