关于oh-my-zsh下载被443端口拒绝连接
问题: curl: (7) Failed to connect to raw.githubusercontent.com port 443: Connection refused
>>> sh -c "$(curl -fsSL https://raw.github.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
>>> curl: (7) Failed to connect to raw.githubusercontent.com port 443: 拒绝连接
错误原因
oh my zsh 官网提供的地址错误.
解决方案
- via curl
sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
- via wget
sh -c "$(wget -O- https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
原地址被墙了
更为使用国内的项目地址
项目mirror地址: https://gitee.com/mirrors/oh-my-zsh
以下命令功能下载我修改过的ohmyzsh的install.sh并执行,改变了文件中指向的git仓库从github移到gitee。 如果有问题欢迎留言。
via curl
sh -c "$(curl -fsSL https://gitee.com/shmhlsy/oh-my-zsh-install.sh/raw/master/install.sh)"
via wget
sh -c "$(wget -O- https://gitee.com/shmhlsy/oh-my-zsh-install.sh/raw/master/install.sh)"
文章原文作者是在ubuntu下进行的,但是我在macos下同样适用!!!
原文地址:https://blog.csdn.net/qq_35104586/article/details/103604964/