1.打开梯子 2.在.zshrc中设置 export http_proxy=socks5://127.0.0.1:1081 export https_proxy=$http_proxy 3.终端中使用source ~/.zshrc