Homebrew的安装

Homebrew是一款Mac OS平台下的软件包管理工具

安装

网址:Homebrew

/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"

国内安装(省事):HomebrewCN: Homebrew 国内安装脚本

解决报错

原因:DNS 污染

安装Homebrew的时候报错:

curl: (7) Failed to connect to raw.githubusercontent.com port 443 after 14 ms: Connection refused
  1. 查询raw.githubusercontent.com的IP地址
  2. 在本机的 host 文件中添加
185.199.108.133 raw.githubusercontent.com
185.199.109.133 raw.githubusercontent.com
185.199.110.133 raw.githubusercontent.com
185.199.111.133 raw.githubusercontent.com

解决 curl: (7) Failed to connect to raw.githubusercontent.com port 443 …_卡尔特斯的博客-CSDN博客

评论

发表回复

您的邮箱地址不会被公开。 必填项已用 * 标注