集群如下:
192.168.188.111 master
192.168.188.112 slave1
192.168.188.113 slave2
1 .修改主机名及域名解析
1.1 修改主机名
[root@master ~]# vim /etc/hostname
输入master
同理在192.168.188.112和192.168.188.113分别修改为slave1和slave2.
1.2 修改域名hosts
[root@master ~]# vim /etc/hosts
127.0.0.1 localhost localhost.localdomain localhost4 localhost4.localdomain4
::1 localhost localhost.localdomain localhost6 localhost6.localdomain6
192.168.188.111 master
192.168.188.112 slave1
192.168.188.113 slave2