Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我一直在阅读有关虚拟化层的内容,当我进入应用程序虚拟化时,我想到了这一点。
我可以认为 RVM 使用 Gemsets 是一种应用程序虚拟化形式吗?鉴于它允许多个版本的 gems 在同一个系统中共存。
我错了吗?
RVM(Ruby Version Manager) 允许你安装多个版本的Ruby,你可以使用 来切换版本rvm use,它与虚拟化无关,它基本上为你配置了一堆环境变量。
rvm use
前任:
$ env | grep -i rvm | awk -F= '{print $1}' MANPATH rvm_bin_path GEM_HOME IRBRC MY_RUBY_HOME rvm_path rvm_prefix PATH rvm_version GEM_PATH
它解决 IMO 的最大问题是为非特权用户管理 Ruby 安装。