Mac无法安装Homebrew Failed to connect to raw.githubusercontent.com port 443: Connection refused

it2025-09-02  3

描述

在Mac上安装Homebrew时安装失败并显示: curl: (7) Failed to connect to raw.githubusercontent.com port 443: Connection refused

解决办法

修改Mac的DNS配置

打开系统偏好设置 -> 网络 -> 高级 -> DNS

点击左侧的 + 添加谷歌的DNS: 8.8.8.8

进入Homebrew官网拷贝安装代码到终端即可安装 Homebrew

最新回复(0)