2022年9月15日

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

“以书为舟,遨游尘世”,
最好的免费 kindle 电子书分享站:

You may also like...

发表回复

您的电子邮箱地址不会被公开。


*