Custom Installation path mha

Environment:
Centos 7

here is on the management node installation, you need to install the package manager and node packages, you must first install the packages node
1. First, install the node software
[root @ pxc01 mha] # tar -xvf mha4mysql-node-0.57 .tar.gz
[@ pxc01 the root MHA] #cd mha4mysql-Node-0.57
[@ pxc01 the root MHA] #perl Makefile.PL the install_base = / opt / mha_software
[@ pxc01 the root MHA] && #make the make the install
Perl Makefile.PL the install_base = / opt / mha_software

/ opt / mha_software directory can be created in advance
mkdir -p / opt / mha_software

2. configuration environment variable
here need to install the package path node is added to the root of the following environment variables, otherwise the installation of the management pack will suggested that the lack MHA :: NodeConst, as follows
[root @ localhost mha4mysql-Manager-0.57] # perl Makefile.PL the install_base = / opt / mha_software
*** Module :: the AutoInstall Version 1.06
*** Checking for Perl the Dependencies ...
[Core Features]
- DBI ... loaded (1.627).
-. DBD :: MySQL ... loaded (4.023)
- Time :: HiRes ... loaded (1.9725).
- Config :: Tiny ... loaded (2.14).
- :: Dispatch ... loaded the Log (2.41).
- Parallel :: ForkManager ... loaded (1.18).
- MHA :: NodeConst ... Missing.

Add the environment variable as follows:
Export PERL5LIB = $ PERL5LIB: / opt / mha_software / lib / Perl5 /

3. installation manager software
[@ pxc01 the root MHA] #tar -xvf mha4mysql-manager-0.57.tar.gz
[@ pxc01 the root MHA] #cd mha4mysql-manager-0.57
[@ pxc01 the root MHA] # = Makefile.PL the install_base Perl / opt / mha_software
[@ pxc01 the root MHA] && #make the make the install

the same path with the install_base herein designated node of node installation

Guess you like

Origin www.cnblogs.com/hxlasky/p/11612613.html