centos7基于MySQL5.7,MHA高可用搭建及搭建过程中遇到的小事情

mha 搭建文档
1,三台服务器开启相对应端口防火墙或者关闭防火墙 &&selinux
systemctl stop firewalld && setenforce 0
2,三台服务器配置免密登陆
1.77
[root@localhost ~]# ssh-keygen -t rsa
[root@localhost ~]# ssh-copy-id /root/.ssh/id_rsa.pub 192.168.1.77
[root@localhost ~]# ssh-copy-id /root/.ssh/id_rsa.pub 192.168.1.78
[root@localhost ~]# ssh-copy-id /root/.ssh/id_rsa.pub 192.168.1.81
1.78
[root@localhost ~]# ssh-keygen -t rsa
[root@localhost ~]# ssh-copy-id /root/.ssh/id_rsa.pub 192.168.1.77
[root@localhost ~]# ssh-copy-id /root/.ssh/id_rsa.pub 192.168.1.78
[root@localhost ~]# ssh-copy-id /root/.ssh/id_rsa.pub 192.168.1.81
1.81
[root@localhost ~]# ssh-keygen -t rsa
[root@localhost ~]# ssh-copy-id /root/.ssh/id_rsa.pub 192.168.1.77
[root@localhost ~]# ssh-copy-id /root/.ssh/id_rsa.pub 192.168.1.78
[root@localhost ~]# ssh-copy-id /root/.ssh/id_rsa.pub 192.168.1.81

3,安装MySQL服务 附带自动化MySQL安装脚本,分享至百度云网

你可能感兴趣的:(centos7基于MySQL5.7,MHA高可用搭建及搭建过程中遇到的小事情)