标签:加速 -- stl 根据 brew work ini class mac
修改hosts文件
sudo vim /etc/hosts
# add two lines at the end.
31.13.66.1 github.global.ssl.fastly.net
13.229.188.59 github.com
刷新DNS缓存(根据你的操作系统选择)
# Mac
sudo killall -HUP mDNSResponder
# linux
sudo /etc/init.d/networking restart
清华镜像站:清华镜像站
homebrew替换指南:帮助文档
git -C "$(brew --repo)" remote set-url origin https://mirrors.tuna.tsinghua.edu.cn/git/homebrew/brew.git
git -C "$(brew --repo homebrew/core)" remote set-url origin https://mirrors.tuna.tsinghua.edu.cn/git/homebrew/homebrew-core.git
git -C "$(brew --repo homebrew/cask)" remote set-url origin https://mirrors.tuna.tsinghua.edu.cn/git/homebrew/homebrew-cask.git
brew update
标签:加速 -- stl 根据 brew work ini class mac
原文地址:https://www.cnblogs.com/cpl9412290130/p/12148705.html