1、
創(chuàng)新互聯公司專注于葉城企業(yè)網站建設,響應式網站,
商城網站建設。葉城網站建設公司,為葉城等地區(qū)提供建站服務。全流程
定制網站制作,專業(yè)設計,全程項目跟蹤,
創(chuàng)新互聯公司專業(yè)和態(tài)度為您提供的服務一、MHA部署環(huán)境:
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配置搭建-創(chuàng)新互聯
轉載注明:
http://weahome.cn/article/jsoee.html