美文网首页
homebrew安装报错

homebrew安装报错

作者: 原地踏步的稀有动物 | 来源:发表于2020-04-26 17:14 被阅读0次

使用

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

安装时报错

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

1.直接打开网页,如果打开不了请科学上网
跳转

https://raw.githubusercontent.com/Homebrew/install/master/install.sh

2.打开网站后保存文件到本地 ***.rb (保存到你能找到的位置)

3.然后文本方式打开 ***.rb

把下面的源注释掉

BREW_REPO="https://github.com/Homebrew/brew" 

替换为国内镜像

BREW_REPO="git://mirrors.ustc.edu.cn/brew.git"

5.更改 ***.rb 的权限

chmod 755 ***.rb

6.cd到 ***.rb 的位置,运行脚本

./***.rb

相关文章

网友评论

      本文标题:homebrew安装报错

      本文链接:https://www.haomeiwen.com/subject/elsjwhtx.html