安装:
先下载,然后是以下步骤
[root@001 ~]# tar xf percona-xtrabackup-2.4.8-Linux-x86_64.tar.gz -C /usr/local/
[root@001 ~]# mv /usr/local/percona-xtrabackup-2.4.8-Linux-x86_64/ /usr/local/xtrabackup
[root@001 local]# echo "export PATH=$PATH:/usr/local/xtrabackup/bin" >> /etc/profile
[root@001 local]# source /etc/profile
[root@001 ~]# yum install numactl -y #安装依赖
检查:
[root@001 ~]# xtrabackup -version
xtrabackup version 2.4.8 based on MySQL server 5.7.13 Linux (x86_64) (revision id: 97330f7)
=====================================================方式二=======================================================================
yum -y install perl-DBD-MySQL
yum -y install libev.so.4
yum -y install numactl
rpm -ivh libev-4.15-1.el6.rf.x86_64.rpm
yum -y install rsync
rpm -ivh percona-xtrabackup-24-2.4.4-1.el6.x86_64.rpm