rvm安装解决curl: (7) Failed to connect to raw.githubusercontent.com port 443

1,469 阅读1分钟

检查当前 rvm 环境

rvm -v

输出结果:( 存在 rvm 环境)

image.png

输出结果:(不存在 rvm 环境)提示:command not found

1.如果不存在输入下面命令安装

curl -L https://get.rvm.io | bash -s stable

1.1如果出现如下提示:curl: (7) Failed to connect to raw.githubusercontent.com port 443 after 3 ms: Couldn't connect to server

image.png

解决方案:

(1)点击这个www.ipaddress.com/ 输入上图的地址raw.githubusercontent.com搜索

image.png

(2)进入下一个页面滚动找到下图这个东西 image.png

(3)前往文件夹/etc/hosts image.png

(4)把上面查询到的地址复制到hosts文件中 image.png

再执行安装命令就成功了 image.png