解决cocopods 升级Ruby环境报错Failed to connect to raw.githubusercontent.com port 443: Connection refused

ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"

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


终端 输入:sudo vim /etc/hosts

# 加上一行

199.232.28.133 raw.githubusercontent.com

esc ——> :wq ->回车

再执行一次就可以了,域名被污染了,不可用

你可能感兴趣的:(解决cocopods 升级Ruby环境报错Failed to connect to raw.githubusercontent.com port 443: Connection refused)