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

评论

空空如也
suxing
suxing
2014-04-21 13:03:27 广东

推荐 互联网时代如何让“内容为王”

智能摘要 DeepSeek 2014中国内容营销盛典聚焦互联网时代内容营销趋势,探讨“内容为王”的新策略。联想、凤凰网、Cheil杰尔广告等机构与嘉宾强调跨界思维、整合平台、品牌内容匹配度的重要性。爱奇艺、金立、乐视网等企业分享多屏时代 ...
  • 博客
5,766 1
suxing
suxing
2022-08-16 16:40:49 广东

推荐 WordPress 赛博朋克图片主题:Vanilla 主题

智能摘要 DeepSeek 这是一款赛博朋克风格的WordPress主题,具有深色配色、沉浸式首页大图、多种缩略图比例、视频集模式、文章角标、用户交互功能等特 ...
WordPress 赛博朋克图片主题:Vanilla 主题,这是一款多功能的 WordPress 主题,赛博朋克的配色,大气有质感的交互设计,令人愉悦的视觉体验,内置丰富的功能布局,简单几步就能做出好看且好用的网站。特别适合文字、设计、视频工作者的使用。
nicetheme出品
  • 博客
  • suxing:
    超级推荐的一款主题
16,014 5
suxing
suxing
2021-03-26 13:42:22 广东

推荐 Visual Studio Code 常用插件

智能摘要 DeepSeek Visual Studio Code 是一个跨平台的现代编辑器,支持多种编程语言,提供语法高亮、括号匹配、代码补全等功能,内置Gi ...
  • 博客
2,999 0
suxing
suxing
2014-04-24 13:47:14 广东

推荐 你必须知道的中国八位域名大玩咖

智能摘要 DeepSeek 4月22日,小米公司启用新域名mi.com,原有域名xiaomi.com已跳转至此,更换域名花费360万美元。2013年,4家电商更换域名,包括京东、唯品会、易迅、一号店,均在域名更换上花费数千万元。蔡文胜、 ...
  • 博客
  • 域名玩家
12,641 13
suxing
suxing
2019-01-05 17:00:36 广东

推荐 2019年我和小伙伴们的一些小目标小计划

智能摘要 DeepSeek 2018年,我们从个人工作室转型为公司运营,取得多项重要成就,包括获得软件著作权、注册商标、创建交流群、发布多个主题及组件,并推出 ...
  • 博客
  • 主题
3,329 5

我用的 WordPress 主题

2021 年单栏 WordPress 主题

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