美文网首页
Homebrew install 超时 LibreSSL SSL

Homebrew install 超时 LibreSSL SSL

作者: aven_kang | 来源:发表于2023-07-09 11:23 被阅读0次

Homebrew下载超时多数都是因为连接失败了,访问国外的资源会很不稳定
那么就会有人教你去https://sites.ipaddress.com/这个网站,输入:raw.githubusercontent.com,查询可用稳定的ip,然后去hosts添加配置,打开hosts文件(sudo vi /etc/hosts),在最后一行加入 xxx.xxx.xx.xxx raw.githubusercontent.com(x部分是你刚才查询的ip地址),可能会有用,但是下次那个添加到hosts的ip又不稳定了呢,是不是又要去再ping一个可用的ip呢,感觉很麻烦

解决办法:使用国内源

https://gitee.com/cunkai/HomebrewCN?_from=gitee_search

在mac终端执行:
/bin/zsh -c "$(curl -fsSL https://gitee.com/cunkai/HomebrewCN/raw/master/Homebrew.sh)"

image.png

这样不管是安装homebrew还是用homebrew下载其他的组件,都很快。

可以参考这个大佬写的,更为详细https://www.jianshu.com/p/ed45ec7684a3

相关文章

网友评论

      本文标题:Homebrew install 超时 LibreSSL SSL

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