摘要: 前提: 1、已配置好hosts文件且免密码登录 2、需要的yaml文件已上传到主控端 一、使用Ansible配置iptables 1、iptables.yaml文件 2、iptables文件 阅读全文
posted @ 2017-08-02 12:49 哈喽哈喽111111 阅读(1346) 评论(0) 推荐(0) 编辑
摘要: 三、使用Ansible安装mysql 1、mysq.yaml文件 注:安装的mysql版本查看 #mysql -V mysql Ver 14.14 Distrib 5.6.37, for Linux (x86_64) using EditLine wrapper 安装完mysql后还需要设置root 阅读全文
posted @ 2017-08-02 12:42 哈喽哈喽111111 阅读(752) 评论(0) 推荐(0) 编辑
摘要: 二、使用Ansible安装php 1、php.yaml文件内容 2、index.php文件 注:安装的php版本查看 #php -v PHP 5.6.31 (cli) (built: Jul 6 2017 08:06:11) Copyright (c) 1997-2016 The PHP Group 阅读全文
posted @ 2017-08-02 12:40 哈喽哈喽111111 阅读(871) 评论(0) 推荐(0) 编辑
摘要: 使用Ansible安装nginx 1、nginx.yaml文件 2、nginx.conf文件 3、www.conf文件 4、nginx.repo文件 把这四个文件放在同一个目录下,然后执行ansible-playbook nginx.yaml命令即可 阅读全文
posted @ 2017-08-02 11:59 哈喽哈喽111111 阅读(1011) 评论(0) 推荐(0) 编辑