這篇文章主要為大家展示了“如何安裝xtrabackup”,內(nèi)容簡(jiǎn)而易懂,條理清晰,希望能夠幫助大家解決疑惑,下面讓小編帶領(lǐng)大家一起研究并學(xué)習(xí)一下“如何安裝xtrabackup”這篇文章吧。
創(chuàng)新互聯(lián)公司專業(yè)為企業(yè)提供翼城網(wǎng)站建設(shè)、翼城做網(wǎng)站、翼城網(wǎng)站設(shè)計(jì)、翼城網(wǎng)站制作等企業(yè)網(wǎng)站建設(shè)、網(wǎng)頁設(shè)計(jì)與制作、翼城企業(yè)網(wǎng)站模板建站服務(wù),10年翼城做網(wǎng)站經(jīng)驗(yàn),不只是建網(wǎng)站,更提供有價(jià)值的思路和整體網(wǎng)絡(luò)服務(wù)。
解壓
[root@localhost ~]# rpm -ivh percona-xtrabackup-2.3.3-1.el6.x86_64.rpm
warning: percona-xtrabackup-2.3.3-1.el6.x86_64.rpm: Header V4 DSA/SHA1 Signature, key ID cd2efd2a: NOKEY
error: Failed dependencies:
libev.so.4()(64bit) is needed by percona-xtrabackup-2.3.3-1.el6.x86_64
perl(DBD::MySQL) is needed by percona-xtrabackup-2.3.3-1.el6.x86_64
解決方法:
[root@localhost ~]# yum -y install perl-DBD-MySQL
http://dist.schmorp.de/libev/下載libev-4.15.tar.gz
[root@localhost ~]# tar -zxf libev-4.22.tar.gz
[root@localhost libev-4.22]# ./configure
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
………..
[root@localhost libev-4.22]# make
make all-am
make[1]: Entering directory `/root/libev-4.22'
/bin/sh ./libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -g -O3 -MT ev.lo -MD -MP -MF .deps/ev.Tpo -c -o ev.lo ev.c
…………
[root@localhost libev-4.22]# make install
make[1]: Entering directory `/root/libev-4.22'
/bin/mkdir -p '/usr/local/lib'
/bin/sh ./libtool --mode=install /usr/bin/install -c libev.la '/usr/local/lib'
libtool: install: /usr/bin/install -c .libs/libev.so.4.0.0 /usr/local/lib/libev.so.4.0.0
……….
查看libev安裝信息
[root@localhost libev-4.22]# find / -name 'libev.so'
/root/libev-4.22/.libs/libev.so
/usr/local/lib/libev.so
配置lib訪問
[root@localhost libev-4.22]# cat /etc/profile
export LIBDIR=/usr/local/lib
export LD_LIBRARY_PATH=/usr/local/lib
export LD_RUN_PATH=/usr/local/lib
再次安裝:
[root@rh74 XtraBackup]# rpm -ivh percona-xtrabackup-2.3.2-1.el6.x86_64.rpm
warning: percona-xtrabackup-2.3.2-1.el6.x86_64.rpm: Header V4 DSA/SHA1 Signature, key ID cd2efd2a: NOKEY
error: Failed dependencies:
libev.so.4()(64bit) is needed by percona-xtrabackup-2.3.2-1.el6.x86_64
再次安裝失敗
下載libev(64)并安裝:
http://rpmfind.net/linux/rpm2html/search.php?query=libev.so.4()(64bit)
[root@localhost ~]# rpm -ivh libev-4.15-1.el6.rf.x86_64.rpm
warning: libev-4.15-1.el6.rf.x86_64.rpm: Header V3 DSA/SHA1 Signature, key ID 6b8d79e6: NOKEY
Preparing... ########################################### [100%]
1:libev ########################################### [100%]
[root@localhost ~]# rpm -ivh percona-xtrabackup-2.3.3-1.el6.x86_64.rpm
warning: percona-xtrabackup-2.3.3-1.el6.x86_64.rpm: Header V4 DSA/SHA1 Signature, key ID cd2efd2a: NOKEY
Preparing... ########################################### [100%]
1:percona-xtrabackup ########################################### [100%]
[root@localhost ~]# rpm -ivh percona-xtrabackup-debuginfo-2.3.3-1.el6.x86_64.rpm
warning: percona-xtrabackup-debuginfo-2.3.3-1.el6.x86_64.rpm: Header V4 DSA/SHA1 Signature, key ID cd2efd2a: NOKEY
Preparing... ########################################### [100%]
1:percona-xtrabackup-debu########################################### [100%]
[root@localhost ~]# rpm -ivh percona-xtrabackup-test-2.3.3-1.el6.x86_64.rpm
warning: percona-xtrabackup-test-2.3.3-1.el6.x86_64.rpm: Header V4 DSA/SHA1 Signature, key ID cd2efd2a: NOKEY
Preparing... ########################################### [100%]
1:percona-xtrabackup-test########################################### [100%]
安裝成功
以上是“如何安裝xtrabackup”這篇文章的所有內(nèi)容,感謝各位的閱讀!相信大家都有了一定的了解,希望分享的內(nèi)容對(duì)大家有所幫助,如果還想學(xué)習(xí)更多知識(shí),歡迎關(guān)注創(chuàng)新互聯(lián)行業(yè)資訊頻道!