Mac 终端配置代理 编辑 ~/.zshrc,输入(记得改成自己的代理地址): alias proxy='export http_proxy=127.0.0.1:1088;export https_proxy=$http_proxy' alias proxyOff='unset http_proxy;unset https_proxy' 使配置生效:source ~/.zshrc 使用: 启动代理:proxy 关闭代理:proxyOff