码迷,mamicode.com
首页 > 其他好文 > 详细

MHA安装

时间:2018-12-07 20:55:11      阅读:201      评论:0      收藏:0      [点我收藏+]

标签:file   makefile   dispatch   机器   net   aliyun   types   主从   lease   

主从架构
master:
10.150.20.90 qa05.010150020090.yz
slave:
10.15.20.97 qa06.010150020097.yz
10.150.20.132 cgdb.010150020132.yz
manager:
10.150.20.95 dev05.010150020095.yz
vip:
10.150.20.200

四台机器的系统情况:
OS:CentOS7.3
MySQL:5.7.21
MHA:0.58
网卡名:ens3

 

 

 

安装 mha node

master slave安装mha4mysql-node-0.58

# yum install perl-CPAN perl-DBD-MySQL perl-Config-Tiny perl-Email-Date-Format perl-Log-Dispatch perl-Mail-Sender perl-Mail-Sendmail perl-MIME-Lite perl-MIME-Types perl-Parallel-ForkManager perl-Params-Validate perl-Time-HiRes

# cd /tmp/mha
# wget https://github.com/yoshinorim/mha4mysql-node/releases/download/v0.58/mha4mysql-node-0.58.tar.gz
# tar -zxvf mha4mysql-node-0.58.tar.gz
# cd mha4mysql-node-0.58
# perl Makefile.PL
# make 
# make install

安装 mha manager

manger节点安装 mha4mysql-manager-0.58,在安装 mha manager 之前,必须要先安装 mha node,参照上面完成安装后,再进行下面的操作。

# cd /tmp/mha
# wget https://github.com/yoshinorim/mha4mysql-manager/releases/download/v0.58/mha4mysql-manager-0.58.tar.gz
# tar -zxvf mha4mysql-manager-0.58.tar.gz
# cd mha4mysql-manager-0.58
# perl Makefile.PL
# make 
# make install

  

 

 

参考:

https://blog.csdn.net/ctypyb2002/article/details/81478098

MHA实战篇:https://yq.aliyun.com/articles/58920

MHA安装

标签:file   makefile   dispatch   机器   net   aliyun   types   主从   lease   

原文地址:https://www.cnblogs.com/elontian/p/10084498.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!