centos安装
下载时注意,xtrabackup的版本是与mysql的版本对应的
wget https://downloads.percona.com/downloads/Percona-XtraBackup-2.4/Percona-XtraBackup-2.4.22/binary/redhat/7/x86_64/Percona-XtraBackup-2.4.22-rc99a781-el7-x86_64-bundle.tar
wget https://downloads.percona.com/downloads/Percona-XtraBackup-2.4/Percona-XtraBackup-2.4.22/binary/redhat/6/x86_64/Percona-XtraBackup-2.4.22-rc99a781-el6-x86_64-bundle.tar
yum install -y libev
yum localinstall -y percona-xtrabackup-24-*
Running transaction Installing : perl-Digest-1.17-245.el7.noarch 1/4 Installing : perl-Digest-MD5-2.52-3.el7.x86_64 2/4 Installing : percona-xtrabackup-24-2.4.22-1.el7.x86_64 3/4 Installing : percona-xtrabackup-24-debuginfo-2.4.22-1.el7.x86_64
ubantu安装
root@ubuntu:/opt/soft# lsb_release -a No LSB modules are available. Distributor ID: Ubuntu Description: Ubuntu 20.04.2 LTS Release: 20.04 Codename: focal
apt install cmake build-essential flex bison automake autoconf
apt install libtool libaio-dev mysql-client libncurses-dev zlib1g-dev libev-dev libcurl4-gnutls-dev
apt install libcurl4-openssl-dev
dpkg -i percona-xtrabackup-24_2.4.22-1.focal_amd64.deb
dpkg -i percona-xtrabackup-dbg-24_2.4.22-1.focal_amd64.deb
dpkg -i percona-xtrabackup-test-24_2.4.22-1.focal_amd64.deb
root@ubuntu:/opt/soft# which xtrabackup
/usr/bin/xtrabackup
root@ubuntu:/opt/soft# which innobackupex
/usr/bin/innobackupex