MySQL高可用之MHA集群部署
01 准备工作
1.1 修改主机名
vim /etc/hosts
# 添加对应主机
192.168.28.128 mha1
192.168.28.131 mha2
192.168.28.132 mha3
1.2 关闭防火墙及修改selinux
# 关闭防火墙
systemctl stop firewalld
systemctl disable firewalld # 关闭自启动
# 修改selinux
vim /etc/sysconfig/selinux
SELINUX=disabled # 设置为disabled