安装RVM时报错 curl: (7) Failed to connect to raw.githubusercontent.com port 443: Connection refused

1.打开hosts文件

[code] sudo vim /etc/hosts

2.在hosts文件中修改或者插入下面一行

[code]199.232.28.133 raw.githubusercontent.com

3.接着回到外面一开始访问被拒的地方

然后请求加载:结果和过程如图

原文地址:https://www.cnblogs.com/weifeng1463/p/14055738.html