[Ubuntu] 关于ohmyzsh下载被443拒绝连接

关于ohmyzsh下载被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 官网提供的地址错误.

解决方案

  1. via curl
sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"

    2.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。 如果有问题欢迎留言。

  1. via curl
sh -c "$(curl -fsSL https://gitee.com/shmhlsy/oh-my-zsh-install.sh/raw/master/install.sh)"

      2.via wget

sh -c "$(wget -O- https://gitee.com/shmhlsy/oh-my-zsh-install.sh/raw/master/install.sh)"

你可能感兴趣的:(linux)