因为 brew 安装极慢,所以需要 iTerm2 设置代理解决速度问题。

0x01 解决

代理软件开启本地 Http 端口:
iTerm2 使用代理

iTerm 设置代理:

$ vim ~/.zshrc
# proxy
export http_proxy=http://127.0.0.1:8001
export https_proxy=$http_proxy
$ source ~/.zshrc

吾用的解释器是 zsh,如果你的是 bash,可以直接上面命令的 ~/.zshrc 换成 ./.bash_profile

测试:

$  curl ip.sb
你的代理的 ip

相关文章:

  • 2022-02-17
  • 2022-12-23
  • 2021-04-13
  • 2022-12-23
  • 2021-12-29
  • 2021-10-07
猜你喜欢
  • 2022-02-12
  • 2021-10-02
  • 2022-12-23
  • 2021-04-19
  • 2021-08-14
  • 2022-01-26
  • 2022-12-23
相关资源
相似解决方案