Mac OS 安装Homebrew失败的解决方法

在Mac OS上安装Redis之前要先安装Homebrew

在安装过程中总报如下错误

通常是镜像的原因,执行以下命令再重新安装就可以了

export HOMEBREW_BREW_GIT_REMOTE="https://mirrors.tuna.tsinghua.edu.cn/git/homebrew/brew.git"
export HOMEBREW_CORE_GIT_REMOTE="https://mirrors.tuna.tsinghua.edu.cn/git/homebrew/homebrew-core.git"
export HOMEBREW_BOTTLE_DOMAIN="https://mirrors.tuna.tsinghua.edu.cn/homebrew-bottles"

你可能感兴趣的:(redis)