Percona XtraBackup 安装介绍篇(3)

Installing Percona XtraBackup on Red Hat Enterprise Linux and CentOS 

下面我测试的环境为CentOS Linux release 7.2.1511 (Core) ,安装Percona XtraBackup 2.4为例:

步骤1: Install the Percona repository

[test@mylnx06 ~]$ sudo yum install https://www.percona.com/downloads/percona-release/RedHat/latest/percona-release-0.1-4.noarch.rpm [sudo] password for test: /usr/local/bin/aad-login failed: exit code 1 Loaded plugins: fastestmirror, langpacks percona-release-0.1-4.noarch.rpm                        | 6.4 kB    00:00    Examining /var/tmp/yum-root-02R3Gm/percona-release-0.1-4.noarch.rpm: percona-release-0.1-4.noarch Marking /var/tmp/yum-root-02R3Gm/percona-release-0.1-4.noarch.rpm to be installed Resolving Dependencies --> Running transaction check ---> Package percona-release.noarch 0:0.1-4 will be installed --> Finished Dependency Resolution Dependencies Resolved ================================================================================ Package            Arch      Version    Repository                        Size ================================================================================ Installing: percona-release    noarch    0.1-4      /percona-release-0.1-4.noarch    5.8 k Transaction Summary ================================================================================ Install  1 Package Total size: 5.8 k Installed size: 5.8 k Is this ok [y/d/N]: y Downloading packages: Running transaction check Running transaction test Transaction test succeeded Running transaction Warning: RPMDB altered outside of yum.   Installing : percona-release-0.1-4.noarch                                1/1   Verifying  : percona-release-0.1-4.noarch                                1/1 Installed:   percona-release.noarch 0:0.1-4                                                Complete!

RHEL/Centos 5不支持从远程位置直接安装软件包,因此您需要首先下载软件包,然后用rpm手动安装

$ wget \ percona-release-0.1-4.noarch.rpm $ rpm -ivh percona-release-0.1-4.noarch.rpm

安装完成后,你就能在/etc/yum.repos.d 下看到一个percona-release.repo文件。

步骤2: 测试Repository,确保Percona XtraBackup相关包已经在Repository中。

[test@mylnx06 ~]$ yum list | grep percona-xtrabackup percona-xtrabackup-24.x86_64              2.4.7-2.el7                @percona-release-x86_64 percona-xtrabackup.x86_64                  2.3.8-1.el7                percona-release-x86_64 percona-xtrabackup-22.x86_64              2.2.13-1.el7                percona-release-x86_64 percona-xtrabackup-22-debuginfo.x86_64    2.2.13-1.el7                percona-release-x86_64 percona-xtrabackup-24-debuginfo.x86_64    2.4.7-2.el7                percona-release-x86_64 percona-xtrabackup-debuginfo.x86_64        2.3.8-1.el7                percona-release-x86_64 percona-xtrabackup-test.x86_64            2.3.8-1.el7                percona-release-x86_64 percona-xtrabackup-test-22.x86_64          2.2.13-1.el7                percona-release-x86_64 percona-xtrabackup-test-24.x86_64          2.4.7-2.el7                percona-release-x86_64

步骤3:安装Percona XtraBackup包。

内容版权声明:除非注明,否则皆为本站原创文章。

转载注明出处:https://www.heiqu.com/539583ca2c052b81ea5c84e8420015e2.html