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

评论

空空如也
suxing
suxing
2017-03-25 11:32:38 广东

推荐 对于盗版和盗卖,我有话想说

智能摘要 DeepSeek WordPress在国内发展缓慢,盗版问题导致大量开发者流失。相比之下,3DM论坛等其他论坛已采取严格措施,不破解游戏。这反映出国内游戏行业尚未完全繁荣,需要一个健康的行业环境、开放的创新氛围和积极的生态,才 ...
  • 博客
  • 唠叨
8,182
suxing
suxing
2017-08-08 12:49:03 广东

推荐 关于QQ资料被盗用的申明

智能摘要 DeepSeek 普***公司因未核实客户QQ号码,连续加错用户QQ2567**03,导致骚扰。用户因未还款被骚扰,已通过法律途径投诉,普***公司已通过工信部备案。 这两个星期,连续收到普***公司的相关人士加我QQ。一个 ...
  • 博客
3,784
suxing
suxing
2021-09-07 14:29:09 广东

推荐 百度清风算法4.0即将上线,限制不合规低质下载站出现在搜索结果中

智能摘要 DeepSeek 百度搜索将升级清风算法,限制低质下载站在搜索结果中的展现。要求站点提供真实、有效的下载资源,并明确告知用户下载内容及方式,避免误导 ...
  • 博客
3,058 1
suxing
suxing
2022-10-21 1:35:17 广东

推荐 完美解决因谷歌翻译退出中国市场,Chrome 网页翻译无法使用的问题

智能摘要 DeepSeek 2022年9月30日,谷歌翻译停止在中国大陆服务,导致客户端翻译功能失效。用户可通过终端命令获取可用IP地址,并修改macOS系统 ...
  • 博客
9,956 3
suxing
suxing
2022-10-11 10:11:44 广东

推荐 Taro小程序项目编译警告chunk common [mini-css-extract-plugin]

智能摘要 DeepSeek 编译警告提示不同文件中引入的CSS顺序不一致,导致冲突。可通过在`config/index.js`中添加`miniCssExtra ...
  • 博客
8,208 1

我用的 WordPress 主题

2021 年单栏 WordPress 主题

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