MHA安装
Posted elontian
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了MHA安装相关的知识,希望对你有一定的参考价值。
主从架构
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安装的主要内容,如果未能解决你的问题,请参考以下文章