美文网首页
重装oh-my-zsh遇到的问题:curl: (7) Faile

重装oh-my-zsh遇到的问题:curl: (7) Faile

作者: 见字如晤一 | 来源:发表于2023-06-18 10:44 被阅读0次

在多年后,意外的升级了下Mac硬盘,于是开始了工具重装之旅,用Mac,怎么能少的了oh-my-zsh,这里描述一下自己装oh-my-zsh遇到的问题:
这里可以参考:https://github.com/sirius1024/iterm2-with-oh-my-zsh 这个安装过程
但是在安装时,由于被墙,导致一直报:

curl: (7) Failed to connect to raw.githubusercontent.com port 443: Connection refused

在 /etc/hosts下配置了ip和域名映射都不行,应该还是被墙的原因,所以直接设置代理的方式最可靠:

export https_proxy=http://127.0.0.1:7890 http_proxy=http://127.0.0.1:7890 all_proxy=socks5://127.0.0.1:7890

在 iterm中输入这个指令,然后在调用:

sh -c "$(curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"

就安装成功了!

相关文章

网友评论

      本文标题:重装oh-my-zsh遇到的问题:curl: (7) Faile

      本文链接:https://www.haomeiwen.com/subject/ahojydtx.html