我在玩bundler,并注意到使用根权限运行bundle install
时有一个警告:
Don't run Bundler as root. Bundler can ask for sudo if it is needed, and installing your bundle as root will break this application for all non-root users on this machine.
为什么会这样呢?
发布于 2015-12-15 18:51:18
有两件事相互影响,使得将大多数软件安装为根程序是一个“坏主意”:
如果将包安装为带有Bundler的root包,这意味着您安装的ruby中的脚本不会被任何其他用户访问。
https://stackoverflow.com/questions/34296948
复制相似问题