如何在没有 root 权限的情况下在 Ubuntu 上安装 SaltStack?
How to install SaltStack on Ubuntu without root privileges?
我查看了文档,只找到了使用 virtualenv
的建议,但我的机器没有安装它,所以这不是一个选项。我还查看了 bootstrap-salt.sh
脚本,但没有找到任何合适的选项。
正如 documentation 建议您应该克隆 git 存储库
$ git clone https://github.com/saltstack/salt
然后使用 pip
和 --user
选项安装 Salt 及其依赖项
$ pip install --user pyzmq PyYAML pycrypto msgpack-python jinja2 psutil
$ pip install --user -e ./salt # the path to the salt git clone from above
这样您就可以使用 pip 的 uninstall
命令轻松卸载它。
我查看了文档,只找到了使用 virtualenv
的建议,但我的机器没有安装它,所以这不是一个选项。我还查看了 bootstrap-salt.sh
脚本,但没有找到任何合适的选项。
正如 documentation 建议您应该克隆 git 存储库
$ git clone https://github.com/saltstack/salt
然后使用 pip
和 --user
选项安装 Salt 及其依赖项
$ pip install --user pyzmq PyYAML pycrypto msgpack-python jinja2 psutil
$ pip install --user -e ./salt # the path to the salt git clone from above
这样您就可以使用 pip 的 uninstall
命令轻松卸载它。