MHA配置搭建-创新互联
1、
创新互联公司专注于叶城企业网站建设,响应式网站,
商城网站建设。叶城网站建设公司,为叶城等地区提供建站服务。全流程
定制网站制作,专业设计,全程项目跟踪,
创新互联公司专业和态度为您提供的服务一、MHA部署环境:
MHA_Manager: 192.168.1.100
Mysql_Master:10.20.20.12
Mysql_Slave-1:10.20.20.13
Mysql_Slave-2:10.20.20.14
软件包下载地址:
http://yunpan.cn/c3S5IAKdhqXJe 访问密码 5ea4
注意:关闭防火墙、selinux
二、准备阶段:
step1:建立信任关系:
在Node:10.20.20.12上:
[root@mysqlmaster /]#ssh-keygen -t rsa
[root@mysqlmaster /]#ssh-copy-id -i /root/.ssh/id_rsa.pub root@10.20.20.12
[root@mysqlmaster /]#ssh-copy-id -i /root/.ssh/id_rsa.pub root@10.20.20.13
[root@mysqlmaster /]#ssh-copy-id -i /root/.ssh/id_rsa.pub root@10.20.20.14
在Node:10.20.20.13上:
[root@mysqlslave1 /]#ssh-keygen -t rsa
[root@mysqlslave1 /]#ssh-copy-id -i /root/.ssh/id_rsa.pub root@10.20.20.12
[root@mysqlslave1 /]#ssh-copy-id -i /root/.ssh/id_rsa.pub root@10.20.20.13
[root@mysqlslave1 /]#ssh-copy-id -i /root/.ssh/id_rsa.pub root@10.20.20.14
在Node:10.20.20.14上:
[root@mysqlslave2 /]#ssh-keygen -t rsa
[root@mysqlslave2 /]#ssh-copy-id -i /root/.ssh/id_rsa.pub root@10.20.20.12
[root@mysqlslave2 /]#ssh-copy-id -i /root/.ssh/id_rsa.pub root@10.20.20.13
[root@mysqlslave2 /]#ssh-copy-id -i /root/.ssh/id_rsa.pub root@10.20.20.14
文章名称:MHA配置搭建-创新互联
网站路径:
http://dzwzjz.com/article/jsoee.html