centos7之salt命令随笔笔记

打印当前服务器python下的redis版本

python -c 'import redis; print redis.VERSION'

 如果salt-master报错:

No minions matched the target. No command was sent, no jid was assigned.

salt-key -A 接受一下key 
salt '*' cmd.run 'hostname' #这里 salt '*' 俩单引号必须存在

 salt-minion下的配置文件 >  minion_id  这里记录了 minion的名字

posted @ 2017-10-06 21:59  py鱼  阅读(473)  评论(0编辑  收藏  举报
点我回主页