标签:style io ar os sp strong on art bs
在部署salt-minion时,报错
[root@ ~]# /etc/init.d/salt-minion start
Starting salt-minion daemon: Traceback (most recent call last):
File "/usr/bin/salt-minion", line 6, in <module>
from salt.scripts import salt_minion
ImportError: No module named salt.scripts
懂点python的人,基本上可以确认,是python的模块导入有异常!
细看,就知道这玩意是在python2.6版本上写的,
解决办法,编辑/usr/bin/salt-minion,将python的环境变为2.6就OK了
#!/usr/bin/python2.6
再次启动,就OK了。
[root@zabbix110 ~]# service salt-minion start
Starting salt-minion daemon: [ OK ]
"/usr/bin/salt-minion", line 6, in <module>
标签:style io ar os sp strong on art bs
原文地址:http://blog.csdn.net/jacson_bai/article/details/41807303