【技术分享】MacOS环境Could not resolve proxy: “localhost:1080“解决方案

简介: 【技术分享】MacOS环境Could not resolve proxy: “localhost:1080“解决方案

背景:

今天想更新Homebrew,但是发现提示

fatal: unable to access ‘https://mirrors.ustc.edu.cn/brew.git/’: Could not resolve proxy: “localhost”。如下图所示:

de327ccd8daafbee2ce1af2edb85df79_20210323090130364.png


解决方案:

问题排查发现是因为之前嫌git下载慢,设置了代理。只要把设置的localhost:1080的代理取消就行了。


执行下列脚本查看设置的代理。

git config --global http.proxy

执行下列脚本关闭代理。

git config --global --unset http.proxy


目录
相关文章
|
1月前
|
安全 Linux iOS开发
Tenable Nessus 10.9.3 (macOS, Linux, Windows) - 漏洞评估解决方案
Tenable Nessus 10.9.3 (macOS, Linux, Windows) - 漏洞评估解决方案
229 0
Tenable Nessus 10.9.3 (macOS, Linux, Windows) - 漏洞评估解决方案
|
Linux 数据库 iOS开发
CrossOver 25.1.0 for macOS & Linux - 领先的 Wine 解决方案
CrossOver 25.1.0 for macOS & Linux - 领先的 Wine 解决方案
140 0
|
5月前
|
Dart 开发工具 Android开发
在macOS系统上配置Flutter环境的步骤
在macOS系统上配置Flutter环境的步骤
686 62
|
3月前
|
虚拟化 iOS开发 MacOS
macOS 26 Blank OVF - macOS Tahoe 虚拟化解决方案
macOS 26 Blank OVF - macOS Tahoe 虚拟化解决方案
121 4
|
5月前
|
Linux iOS开发 MacOS
CrossOver 25.0.1 for macOS & Linux - 领先的 Wine 解决方案
CrossOver 25.0.1 for macOS & Linux - 领先的 Wine 解决方案
134 0
|
6月前
|
Linux iOS开发 开发者
CrossOver 25.0 for macOS & Linux - 领先的 Wine 解决方案
CrossOver 25.0 for macOS & Linux - 领先的 Wine 解决方案
252 5
|
11月前
|
iOS开发 MacOS
MacOS环境-手写操作系统-40-进程消息通讯 和 回车键处理
MacOS环境-手写操作系统-40-进程消息通讯 和 回车键处理
79 2
|
11月前
|
缓存 iOS开发 MacOS
MacOS环境-手写操作系统-39-Caps键响应
MacOS环境-手写操作系统-39-Caps键响应
97 0
|
11月前
|
Linux iOS开发 MacOS
MacOS环境-手写操作系统-35-Shell控制台
MacOS环境-手写操作系统-35-Shell控制台
72 2
|
11月前
|
存储 API C语言
MacOS环境-手写操作系统-46,47-C语言开发应用程序
MacOS环境-手写操作系统-46,47-C语言开发应用程序
116 1