curl -sSL https://get.rvm.io | bash -s stable
# To start using RVM you need to run `source /Users/USER/.rvm/scripts/rvm`
source /Users/USER/.rvm/scripts/rvm
# 验证安装
$ rvm --version
rvm 1.29.9 (latest) by Michal Papis, Piotr Kuczynski, Wayne E. Seguin [https://rvm.io]
# 安装 ruby
rvm install 2.7.0
# 列出以安装的 ruby 版本
$ rvm list
=* ruby-2.7.0 [ x86_64 ]
# => - current
# =* - current && default
# * - default
gpg: 无法检查签名:No public key
gpg --keyserver hkp://pool.sks-keyservers.net --recv-keys 409B6B1796C275462A1703113804BB82D39DC0E3 7D2BAF1CF37B13E2069D6956105BD0E739499BDB
截屏2020-03-1421.48.24.png
网友评论