安装 Percona XtraBackup 2.4

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/BLUSES/article/details/89336926

Installing Percona XtraBackup 2.4

官方文档: https://www.percona.com/doc/percona-xtrabackup/2.4/installation.html

服务器版本 CenOS 7
xtrabackup版本 2.4
安装很简单,文章目的是为了让小白可以参考官方文档有理有据的进行安装

xtrabackup有多重安装方法,官方建议从信息库下载进行安装

Installing Percona XtraBackup from Repositories (recommended)

根据环境选择对应参考文档(本机为CentOS 7)

Installing Percona XtraBackup on Red Hat Enterprise Linux and CentOS

经查看xtrabackup2.4版本支持在CentOS 7 64位上进行安装

文档截图如下:

Supported Releases:

CentOS 5 and RHEL 5
CentOS 6 and RHEL 6 (Current Stable) [1]
CentOS 7 and RHEL 7
Amazon Linux AMI (works the same as CentOS 6)
The CentOS repositories should work well with Red Hat Enterprise Linux too, provided that yum is installed on the server.

Supported Platforms:

x86
x86_64 (also known as amd64)

  1. 对于CentOS 5 and RHEL 5以上版本,可以安装Percona 的yum信息库到本机上
    #yum install https://repo.percona.com/yum/percona-release-latest.noarch.rpm

  2. 验证是否安装成功
    #yum list | grep percona

文档截图如下:

yum list | grep percona
You should see output similar to the following:


percona-xtrabackup-20.x86_64 2.0.8-587.rhel5 percona-release-x86_64
percona-xtrabackup-20-debuginfo.x86_64 2.0.8-587.rhel5 percona-release-x86_64
percona-xtrabackup-20-test.x86_64 2.0.8-587.rhel5 percona-release-x86_64
percona-xtrabackup-21.x86_64 2.1.9-746.rhel5 percona-release-x86_64
percona-xtrabackup-21-debuginfo.x86_64 2.1.9-746.rhel5 percona-release-x86_64
percona-xtrabackup-22.x86_64 2.2.13-1.el5 percona-release-x86_64
percona-xtrabackup-22-debuginfo.x86_64 2.2.13-1.el5 percona-release-x86_64
percona-xtrabackup-debuginfo.x86_64 2.3.5-1.el5 percona-release-x86_64
percona-xtrabackup-test.x86_64 2.3.5-1.el5 percona-release-x86_64
percona-xtrabackup-test-21.x86_64 2.1.9-746.rhel5 percona-release-x86_64
percona-xtrabackup-test-22.x86_64 2.2.13-1.el5 percona-release-x86_64

  1. 安装xtrabackup2.4
    #yum install percona-xtrabackup-24

  2. 卸载xtrabackup2.4
    #yum remove percona-xtrabackup

备注:
对于用rpm和源码安装的用户来说,需要自行解决软件包的依赖关系,具体可以参考文章开头的官方文档链接,根据实际需要选择的对应的文档即可。
# yum install cmake gcc gcc-c++ libaio libaio-devel automake autoconf \ bison libtool ncurses-devel libgcrypt-devel libev-devel libcurl-devel \ vim-common

源码安装官方文档链接:https://www.percona.com/doc/percona-xtrabackup/2.4/installation/compiling_xtrabackup.html#compiling-xtrabackup

猜你喜欢

转载自blog.csdn.net/BLUSES/article/details/89336926