\curl -sSL https://get.rvm.io | bash -s stable
安装rvm时提示:
curl: (7) Failed to connect to raw.githubusercontent.com port 443: Connection refused
解决方式一
(1)打开网站: https://www.ipaddress.com/
查询一下 raw.githubusercontent.com对应的IP 地址

(2) 打开/etc/hosts文件,最后一行添加:
185.199.108.133 raw.githubusercontent.com
然后再执行\curl -sSL https://get.rvm.io | bash -s stable
就可以成功安装rvm了
当尝试安装rvm时遇到curl连接raw.githubusercontent.com失败的错误,可以通过查询该域名的IP地址并将其添加到hosts文件中来解决。具体步骤包括访问https://www.ipaddress.com查询IP,然后在/etc/hosts文件末尾添加IP和域名,重新执行安装命令即可成功。
1495

被折叠的 条评论
为什么被折叠?



