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