描述如題
資源訪問太慢了,使用全局VPN也無法解決
解決方案使用鏡像代理
參考https://www.jianshu.com/p/62f1b963baa6方案,但使用中科大鏡像過程中並沒有解決問題,後改用清華鏡像解決
操作步驟
step1:
git -C "$(brew --repo)" remote set-url origin https://mirrors.tuna.tsinghua.edu.cn/git/homebrew/brew.git
step2:
git -C "$(brew --repo homebrew/core)" remote set-url origin https://mirrors.tuna.tsinghua.edu.cn/git/homebrew/homebrew-core.git
最後進行驗證
brew update
驗證過程中可打開活動監視器查看網絡佔用情況
如果網速正常,等待幾分鐘後得到一下結果代表修改成功