科学使用compose
composer config -g repo.packagist composer mirrors.aliyun.com/composer/
科学使用npm
npm config set registry=registry.npm.taobao.org
yarn config set registry registry.npm.taobao.org
科学使用linux
可以使用以下源:
科学使用go
go env -w GOPROXY=https://goproxy.cn,direct
brew
1)替换brew.git
cd "$(brew --repo)"
git remote set-url origin https://mirrors.tuna.tsinghua.edu.cn/git/homebrew/brew.git //清华
2)替换homebrew-core.git
cd "$(brew --repo)/Library/Taps/homebrew/homebrew-core"
git remote set-url origin https://mirrors.tuna.tsinghua.edu.cn/git/homebrew/homebrew-core.git
//清华3)替换homebrew-cask
cd "$(brew --repo)/Library/Taps/homebrew/homebrew-cask"
git remote set-url origin https://mirrors.ustc.edu.cn/homebrew-cask.git
4)替换homebrew-bottles: echo 'export HOMEBREW_BOTTLE_DOMAIN=https://mirrors.ustc.edu.cn/homebrew-bottles' >> ~/.bash_profile 或 echo 'export HOMEBREW_BOTTLE_DOMAIN=https://mirrors.tuna.tsinghua.edu.cn/homebrew-bottles' >> ~/.bash_profile source ~/.bash_profile
5)应用生效 brew update -v (查看过程)
www.cnblogs.com/xingxia/p/M… 最近碰到了ssh报错,无法使用官方源,参考下面的安装方式 mac下镜像飞速安装Homebrew教程