苏醒 苏醒
  • 首页
  • 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
  • 博客
等 人表示很赞
15,334
0

评论

空空如也
suxing
suxing
2023-01-05 14:50:55 广东

推荐 想做个好看好用的知识库网站?用 WordPress主题也行

智能摘要 DeepSeek Maggie主题重制,适合文档类网站。首页采用汉堡包结构,新增搜索词推荐和颜色块文章列表。分类页保留卡片布局,支持缩略图显示。文章 ...
  • 博客
  • wordpress知识库主题
  • 知识库网站
9,578 1
suxing
suxing
2019-02-15 1:21:35 广东

推荐 nicetheme运营笔记0214

智能摘要 DeepSeek 去年升级会员体制后,团队增加了免费会员和专属特权,旨在协助站长建设网站,提供更全面的支持。我们是最早的采用会员制的WordPres ...
  • 博客
3,190 0
suxing
suxing
2023-10-22 2:33:38 广东

推荐 为什么 NASA 选择 WordPress 来改版官网

智能摘要 DeepSeek NASA 官网完成从 Drupal 到 WordPress 的改版,历时18个月,耗资数百万美元。新网站采用 WordPress ...
  • 博客
5,491 0
suxing
suxing
2021-02-09 10:41:52 广东

推荐 nicetheme 春节大促不打烊,全场 7.8 折

智能摘要 DeepSeek 本次促销活动为「牛年大吉大促」,全场商品及积木均可享7.8折优惠,使用优惠码「2021dajidali」可参与,活动期间为2021年2月9日至2月19日。此外,超级会员及会员还可享额外返现(成交价×0.168 ...
  • 博客
2,496 0
suxing
suxing
2019-05-13 23:19:54 广东

推荐 nicetheme最近3个动态,你一定要知道

智能摘要 DeepSeek 奈思主题上线,推出前端投稿积木,支持Quill.js富文本编辑、Markdown转义、拖放粘贴等功能,可自动解析视频地址并删除文章中的图片。此外,购买cosy主题即可享5月12日起满150篇、日IP200以上 ...
  • 博客
2,910 1

我用的 WordPress 主题

2021 年单栏 WordPress 主题

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