1、软件环境:
<code>[root@localhost ~]</code><code># cat /etc/redhat-release </code>
<code>CentOS Linux release 7.3.1611 (Core) </code>
<code>[root@localhost ~]</code><code># uname -a</code>
<code>Linux localhost.localdomain 3.10.0-514.el7.x86_64 </code><code>#1 SMP Tue Nov 22 16:42:41 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux</code>
<code>[root@localhost ~]</code><code>#</code>
(1)修改selinux配置文件:
<code>[root@localhost ~]</code><code># vim /etc/sysconfig/selinux </code>
<code>SELINUX=enforcing 改为 SELINUX=disabled</code>
(2)关闭防火墙:
<code>[root@localhost ~]</code><code># systemctl disable firewalld</code>
<code>[root@localhost ~]</code><code># systemctl stop firewalld</code>
<code>[root@localhost ~]</code><code># iptables -F</code>
<code>[root@localhost ~]</code><code># iptables -L</code>
IP分配如下:
master 192.168.112.140
minion 192.168.112.141
minion 192.168.112.142
(3)master和minion端部署安装
master端执行:
<code>[root@localhost ~]</code><code># yum install epel-release</code>