MMM安裝、MHA安裝
yum install -y gcc gcc-c++
安裝MMM的資料來源
wget
rpm -ivh epel-release-6-8.noarch.rpm
yum install -y mysql-mmm*
安裝MHA資料庫源
/etc/init.d/mysql start
echo "/usr/local/mysql/lib" > /etc/ld.so.conf.d/mysql-x86_64.conf
ldconfig
ldconfig -p | grep mysql
export PATH=/usr/local/mysql/bin:$PATH
yum install -y gcc gcc-c++ perl-DBD-MySQL perl-DBI "perl(DBD::mysql)" "perl(Test::Deep)" "perl(Test::More)" perl-Time-HiRes perl-CPAN
======================================================================================
注:
手工安裝DBD安裝:
export PATH=/usr/local/mysql/bin:$PATH;
wget
tar xf DBD-mysql-4.033.tar.gz
cd DBD-mysql-4.033
perl Makefile.PL - mysql_config=/usr/local/mysql/bin/mysql_config
make
make test
make install
=======================================================================================
自動安裝DBD安裝
vim install.sh
#!/bin/bash
wget --no-check-certificate
mv cpanm /usr/bin
chmod 755 /usr/bin/cpanm
cat >/root/list<<EOF
install Algorithm::Diff
install Class::Singleton
install DBI
install DBD::mysql
install File::Basename
install File::stat
install File::Temp
install Log::Dispatch
install Log::Log4perl
install Mail::Send
install Net::ARP
install Net::Ping
install proc::Daemon
install Thread::Queue
install Time::HiRes
EOF
for pkg in $(cat /root/list)
do
cpanm $pkg
done
在所有伺服器上安裝
cd
wget
tar xf mha4mysql-node-0.53.tar.gz
cd mha4mysql-node-0.53
perl Makefile.PL
make && make install
在監控主機上安裝
wget
tar xf mha4mysql-manager-0.53.tar.gz
cd mha4mysql-manager-0.53
perl Makefile.PL
make && make install
安裝MMM的資料來源
wget
rpm -ivh epel-release-6-8.noarch.rpm
yum install -y mysql-mmm*
安裝MHA資料庫源
/etc/init.d/mysql start
echo "/usr/local/mysql/lib" > /etc/ld.so.conf.d/mysql-x86_64.conf
ldconfig
ldconfig -p | grep mysql
export PATH=/usr/local/mysql/bin:$PATH
yum install -y gcc gcc-c++ perl-DBD-MySQL perl-DBI "perl(DBD::mysql)" "perl(Test::Deep)" "perl(Test::More)" perl-Time-HiRes perl-CPAN
======================================================================================
注:
手工安裝DBD安裝:
export PATH=/usr/local/mysql/bin:$PATH;
wget
tar xf DBD-mysql-4.033.tar.gz
cd DBD-mysql-4.033
perl Makefile.PL - mysql_config=/usr/local/mysql/bin/mysql_config
make
make test
make install
=======================================================================================
自動安裝DBD安裝
vim install.sh
#!/bin/bash
wget --no-check-certificate
mv cpanm /usr/bin
chmod 755 /usr/bin/cpanm
cat >/root/list<<EOF
install Algorithm::Diff
install Class::Singleton
install DBI
install DBD::mysql
install File::Basename
install File::stat
install File::Temp
install Log::Dispatch
install Log::Log4perl
install Mail::Send
install Net::ARP
install Net::Ping
install proc::Daemon
install Thread::Queue
install Time::HiRes
EOF
for pkg in $(cat /root/list)
do
cpanm $pkg
done
在所有伺服器上安裝
cd
wget
tar xf mha4mysql-node-0.53.tar.gz
cd mha4mysql-node-0.53
perl Makefile.PL
make && make install
在監控主機上安裝
wget
tar xf mha4mysql-manager-0.53.tar.gz
cd mha4mysql-manager-0.53
perl Makefile.PL
make && make install
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/29620572/viewspace-1842211/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- 【MySQL】MHA安裝MySql
- MHA安裝手記
- Mysql MHA部署-03MHA軟體安裝MySql
- MHA安裝和部署步驟
- MHA安裝搭建和測試
- MYSQL + MHA +keepalive + VIP安裝配置(一)--MYSQL安裝配置MySql
- MySQL高可用MMM方案安裝部署MySql
- MYSQL + MHA +keepalive + VIP安裝配置(三)--keepalived安裝配置MySql
- MYSQL + MHA +keepalive + VIP安裝配置(二)--MHA的配置MySql
- mha+keepalived安裝配置過程
- redhat7.4下離線安裝MHA0.58Redhat
- codis安裝 (java 安裝 + zookeeper 安裝 + go 安裝 + codis 安裝JavaGo
- 安裝npm 解除安裝npm 安裝apidocNPMAPI
- mysql安裝 (yum 安裝)MySql
- mysql安裝------RPM包安裝及解除安裝MySql
- oracle安裝:OUI安裝Oracle(圖形介面安裝)OracleUI
- ffmpeg安裝之mac安裝Mac
- docker安裝及解除安裝Docker
- 02 安裝git、安裝TortoiseGitGit
- Ubuntu解除安裝和安裝Ubuntu
- Orace RAC安裝-DNS安裝DNS
- caffe安裝系列——安裝OpenCVOpenCV
- SPARK 安裝之scala 安裝Spark
- mac 安裝opencv homebrew安裝MacOpenCV
- Oracle 安裝與解除安裝Oracle
- solaris mysql 安裝 解除安裝MySql
- BiocManager安裝,devtools安裝dev
- JDK安裝和解除安裝JDK
- 安裝HomeBrew提示已安裝並無法解除安裝
- SQL Server 2012 安裝——安裝 OR 解除安裝SQLServer
- win10安裝版怎麼安裝_安裝版win10安裝教程Win10
- mysql安裝-----二進位制包安裝及解除安裝MySql
- cocoapods安裝/解除安裝/使用
- Mac Redis安裝與解除安裝MacRedis
- [ 安裝 ] Zeppelin安裝步驟!
- Ubuntu安裝和解除安裝mongodbUbuntuMongoDB
- linux 安裝yum 安裝phpLinuxPHP
- [雲原生]Docker - 安裝&解除安裝Docker