免責事項:この記事はブロガーオリジナル記事です、続くBY-SAのCC 4.0を著作権契約、複製、元のソースのリンクと、この文を添付してください。
ソース自作アリ雲を交換してください
brew.git置き換えます。
cd "$(brew --repo)"
git remote set-url origin https://mirrors.aliyun.com/homebrew/brew.git
自作-core.gitを交換してください:
cd "$(brew --repo)/Library/Taps/homebrew/homebrew-core"
git remote set-url origin https://mirrors.aliyun.com/homebrew/homebrew-core.git
アプリケーションを有効にします
brew update
自作ボトルを交換してください:
echo 'export HOMEBREW_BOTTLE_DOMAIN=https://mirrors.aliyun.com/homebrew/homebrew-bottles' >> ~/.zshrc
source ~/.zshrc
公式のソースに戻って使用します。
brew.gitリセット:
cd "$(brew --repo)"
git remote set-url origin https://github.com/Homebrew/brew.git
自作-core.gitをリセットします。
cd "$(brew --repo)/Library/Taps/homebrew/homebrew-core"
git remote set-url origin https://github.com/Homebrew/homebrew-core.git
#删除zshrc HOMEBREW_BOTTLE_DOMAIN内容