Mac安装homebrew

在终端里执行:

1
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"

如果有如下提示:

1
curl: (7) Failed to connect to raw.githubusercontent.com port 443: Connection refused

则打开网络偏好设置–>高级–>DNS–>+输入:8.8.8.8 或者 114.114.114.114

然后重新执行上面的命令:

1
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"

如果安装速度过慢点话,建议去gitee上搜索homebrew,使用国人的安装脚本,本人最后使用的是这个,用了中科大的源:

1
/bin/zsh -c "$(curl -fsSL https://gitee.com/cunkai/HomebrewCN/raw/master/Homebrew.sh)"

Comments

You need to set client_id and slot_id to show this AD unit. Please set it in _config.yml.