检查当前 rvm
环境
rvm -v
输出结果:( 存在 rvm 环境)
输出结果:(不存在 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
解决方案:
(1)点击这个www.ipaddress.com/ 输入上图的地址raw.githubusercontent.com搜索
(2)进入下一个页面滚动找到下图这个东西
(3)前往文件夹/etc/hosts
(4)把上面查询到的地址复制到hosts文件中
再执行安装命令就成功了