brew加速

2020-07-12  本文已影响0人  Marksirl

brew.git

cd "$(brew --repo)"
git remote set-url origin https://mirrors.aliyun.com/homebrew/brew.git
cd "$(brew --repo)"
git remote set-url origin https://github.com/Homebrew/brew.git

homebrew-core.git

cd "$(brew --repo)/Library/Taps/homebrew/homebrew-core"
git remote set-url origin https://mirrors.aliyun.com/homebrew/homebrew-core.git
cd "$(brew --repo)/Library/Taps/homebrew/homebrew-core"
git remote set-url origin https://github.com/Homebrew/homebrew-core.git

homebrew-bottles

echo 'export HOMEBREW_BOTTLE_DOMAIN=https://mirrors.aliyun.com/homebrew/homebrew-bottles' >> ~/.zshrc
source ~/.zshrc
vi ~/.zshrc

删除 HOMEBREW_BOTTLE_DOMAIN 这一行配置

source ~/.zshrc

Connection refuesed解决

首先确保代理使用正常,如不是代理问题请参考如下办法
curl: (7) Failed to connect to 你的报错URL port 443: Connection refsused

  1. 登录 ipaddress.com
  2. 通过URL 找到IP地址
  3. 将查询到的IP 绑定到 URL
  4. 完成
上一篇下一篇

猜你喜欢

热点阅读