2015-11-04 解决 brew 慢的问题 homebrew mac 方法一: 修改镜像源brew update 慢 解决办法 镜像更新源 中科大brew镜像源 清华brew镜像源 123456$ cd /usr/local$ git remote set-url origin git://mirrors.tuna.tsinghua.edu.cn/homebrew.git# 清华镜像源$ git remote set-url origin http://mirrors.ustc.edu.cn/homebrew.git# 中科大镜像源# 二者选其一即可更新 1234567891011$ cd ~$ mkdir tmp$ cd tmp# 以下要与你选择的镜像源相同$ git clone git://mirrors.tuna.tsinghua.edu.cn/homebrew.git$ git clone http://mirrors.ustc.edu.cn/homebrew.git$ sudo rm -rf /usr/local/.git$ sudo rm -rf /usr/local/Library$ sudo cp -R homebrew/.git /usr/local/$ sudo cp -R homebrew/Library /usr/local/ if 123fatal: Unable to create '/usr/local/.git/index.lock': Permission deniedCannot save the current index stateError: Failure while executing: git stash save --include-untracked --quiet then 1234$ sudo chgrp -R admin /usr/local# 确保目录归属管理组$ sudo chmod -R g+w /usr/local# 确保管理组可读 endif 方法二: 用ssusing shadowsocks in terminal < 极路由安装shadowsocks Remote control android device >