- 獲取一個(gè)可以翻墻的http代理服務(wù), 例如:http://192.168.20.136:10809
- 創(chuàng)建終端配置文件(以zsh終端為例):
vim ~/.zshrc
- 在zshrc文件中添加代理服務(wù)地址:
export http_proxy=http://192.168.20.136:10809
export https_proxy=http://192.168.20.136:10809
export ALL_PROXY=socks5://192.168.20.136:10809
- 啟用代理
source ~/.zshrc
關(guān)閉所有終端窗口曾棕,再重新打開終端
測(cè)試是否生效
curl www.google.com
能獲取到內(nèi)容及表示已生效
- 重新更新pod倉庫
pod repo update