安装ruby报错:Failed to connect to raw.githubusercontent.com port 443: Connection refused

chat

使用命令
curl -L https://get.rvm.io | bash -s stable
在mac安装ruby报错:Failed to connect to raw.githubusercontent.com port 443: Connection refused

原因是国内dns被污染,无法解析正确的ip地址,在host文件加入:

#因为dns被污染导致ruby无法安装的解决方案
199.232.28.133 raw.githubusercontent.com

(修改host推荐使用switchHost)

站点的ip地址有可能变更,通过:https://githubusercontent.com.ipaddress.com/raw.githubusercontent.com 可查询真实ip地址

版权声明:
作者:东明兄
链接:https://blog.crazyming.com/note/2400/
来源:CrazyMing
文章版权归作者所有,未经允许请勿转载。

THE END
分享
二维码
海报
安装ruby报错:Failed to connect to raw.githubusercontent.com port 443: Connection refused
mac安装ruby报错
<<上一篇
下一篇>>
chat