安装rvm时提示curl: (7) Failed to connect to raw.githubusercontent.com port 443: Connection refused

当尝试安装rvm时遇到curl连接raw.githubusercontent.com失败的错误,可以通过查询该域名的IP地址并将其添加到hosts文件中来解决。具体步骤包括访问https://www.ipaddress.com查询IP,然后在/etc/hosts文件末尾添加IP和域名,重新执行安装命令即可成功。
摘要由CSDN通过智能技术生成

 

\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了

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值