运行Salt minion,指定Python路径
有没有办法指定运行salt minion必须使用的python解释器 我有几个盐仆在本地网络上运行。 它们中的大多数都工作正常,但有些仆从会抛出错误,我们猜测仆从使用的是python 3而不是python 2(我们需要使用运行Salt minion,指定Python路径,python,salt-stack,Python,Salt Stack,有没有办法指定运行salt minion必须使用的python解释器 我有几个盐仆在本地网络上运行。 它们中的大多数都工作正常,但有些仆从会抛出错误,我们猜测仆从使用的是python 3而不是python 2(我们需要使用salt-2018.3.4-py2) 如果我运行python--version它会说版本是3.7。我们怎样才能强迫仆从使用Python2.7呢 谢谢。我认为这直接取决于您的安装包。如果您安装了salt-2018.3.4-py2,则表示它将与py2一起运行 在我的仆从身上安装了s
salt-2018.3.4-py2
)
如果我运行python--version
它会说版本是3.7。我们怎样才能强迫仆从使用Python2.7呢
谢谢。我认为这直接取决于您的安装包。如果您安装了
salt-2018.3.4-py2
,则表示它将与py2一起运行
在我的仆从身上安装了salt-2019.2-py3,我有
$ python -V
Python 2.7.13
$ salt-minion --versions
Salt Version:
Salt: 2019.2.0
Dependency Versions:
cffi: Not Installed
cherrypy: Not Installed
dateutil: 2.5.3
docker-py: Not Installed
gitdb: 2.0.0
gitpython: 2.1.1
ioflo: Not Installed
Jinja2: 2.9.4
libgit2: Not Installed
libnacl: Not Installed
M2Crypto: Not Installed
Mako: Not Installed
msgpack-pure: Not Installed
msgpack-python: 0.4.8
mysql-python: Not Installed
pycparser: Not Installed
pycrypto: 2.6.1
pycryptodome: Not Installed
pygit2: Not Installed
Python: 3.5.3 (default, Sep 27 2018, 17:25:39)
python-gnupg: Not Installed
PyYAML: 3.12
PyZMQ: 16.0.2
RAET: Not Installed
smmap: 2.0.1
timelib: Not Installed
Tornado: 4.4.3
ZMQ: 4.2.1
System Versions:
dist: debian 9.9
locale: UTF-8
machine: x86_64
release: 4.9.0-9-amd64
system: Linux
version: debian 9.9
及
您是否安装了2.7版?显示您收到的错误:不要猜
python--version
对工作的仆从说了什么?
$ head -1 /usr/bin/salt-minion
#!/usr/bin/python3