摘要: 创建hosts文件 创建ansible-playbook执行时所用到的hosts文件,例如 /etc/redis/hosts 利用shell命令根据传入的host名和地址写入hosts文件: 调用命令: hosts文件: playbook编写 编写设置redis参数的playbook,host以变量 阅读全文
posted @ 2018-03-27 16:49 jugglee 阅读(761) 评论(0) 推荐(0)
摘要: 脚本 命令 命令中参数用空格隔开 阅读全文
posted @ 2018-03-27 13:17 jugglee 阅读(4344) 评论(0) 推荐(0)
摘要: $ ps -ef | grep firefox $kill -s 9 1827 阅读全文
posted @ 2018-03-27 13:11 jugglee 阅读(142) 评论(0) 推荐(0)