CentOS8.1系统安装percona-xtrabackup-24-2.4.14

一、环境说明

安装服务器环境: 阿里云ECS服务,系统为CentOS Linux release 8.1.1911 (Core) x86_64 最小化安装
服务器系统内核: Linux 4.18.0-147.5.1.el8_1.x86_64 #1 SMP Wed Feb 5 02:00:39 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux
安装xtrabackup工具的版本如下:
percona-xtrabackup-24-2.4.14

二、安装过程:

采用常见的安装方法如下:(centos6和centos7的系统下面方法安装是一点没问题都没得。)
yum localinstall percona-xtrabackup-24-2.4.14-1.el7.x86_64.rpm

但是此次是在CentOS Linux release 8.1.1911 (Core) x86_64 系统安装得
[root@online-db soft]# yum localinstall percona-xtrabackup-24-2.4.14-1.el7.x86_64.rpm
结果报错好多没曾遇见到过得错误。也懒得一个个度娘查找解决得办法。

三、解决过程:

采用官方提供得方法安装:
参考: https://www.cnblogs.com/Sungeek/p/10837658.html

[root@online-db soft]# yum install -y https://repo.percona.com/yum/percona-release-latest.noarch.rpm
Repository epel is listed more than once in the configuration
CentOS-8 - AppStream                                                                                                                                        163 kB/s | 4.3 kB     00:00    
CentOS-8 - Base                                                                                                                                             912 kB/s | 3.9 kB     00:00    
CentOS-8 - Extras                                                                                                                                            59 kB/s | 1.5 kB     00:00    
Extra Packages for Enterprise Linux 8 - x86_64                                                                                                              1.3 MB/s | 4.7 kB     00:00    
Extra Packages for Enterprise Linux Modular 8 - x86_64                                                                                                      8.5 kB/s | 9.7 kB     00:01    
percona-release-latest.noarch.rpm                                                                                                                           6.6 kB/s |  19 kB     00:02    
Dependencies resolved.
============================================================================================================================================================================================
 Package                                           Architecture                             Version                                    Repository                                      Size
============================================================================================================================================================================================
Installing:
 percona-release                                   noarch                                   1.0-26                                     @commandline                                    19 k

Transaction Summary
============================================================================================================================================================================================
Install  1 Package

Total size: 19 k
Installed size: 31 k
Downloading Packages:
Running transaction check
Transaction check succeeded.
Running transaction test
Transaction test succeeded.
Running transaction
  Preparing        :                                                                                                                                                                    1/1 
  Installing       : percona-release-1.0-26.noarch                                                                                                                                      1/1 
  Running scriptlet: percona-release-1.0-26.noarch                                                                                                                                      1/1 
* Enabling the Percona Original repository
<*> All done!
* Enabling the Percona Release repository
<*> All done!
The percona-release package now contains a percona-release script that can enable additional repositories for our newer products.

For example, to enable the Percona Server 8.0 repository use:

  percona-release setup ps80

Note: To avoid conflicts with older product versions, the percona-release setup command may disable our original repository for some products.

For more information, please visit:
  https://www.percona.com/doc/percona-repo-config/percona-release.html


  Verifying        : percona-release-1.0-26.noarch                                                                                                                                      1/1 

Installed:
  percona-release-1.0-26.noarch                                                                                                                                                             

Complete!
  • 1.
  • 2.
  • 3.
  • 4.
  • 5.
  • 6.
  • 7.
  • 8.
  • 9.
  • 10.
  • 11.
  • 12.
  • 13.
  • 14.
  • 15.
  • 16.
  • 17.
  • 18.
  • 19.
  • 20.
  • 21.
  • 22.
  • 23.
  • 24.
  • 25.
  • 26.
  • 27.
  • 28.
  • 29.
  • 30.
  • 31.
  • 32.
  • 33.
  • 34.
  • 35.
  • 36.
  • 37.
  • 38.
  • 39.
  • 40.
  • 41.
  • 42.
  • 43.
  • 44.
  • 45.
  • 46.
  • 47.
  • 48.
  • 49.
  • 50.
  • 51.
  • 52.

启用存储库:

[root@online-db soft]# percona-release enable-only tools release
* Disabling all Percona Repositories
* Enabling the Percona Tools repository
<*> All done!
  • 1.
  • 2.
  • 3.
  • 4.

如果Percona XtraBackup打算与MySQL服务器结合使用,您只需要启用tools 存储库:

[root@online-db soft]# percona-release enable-only tools
* Disabling all Percona Repositories
* Enabling the Percona Tools repository
<*> All done!
  • 1.
  • 2.
  • 3.
  • 4.

运行以下命令安装Percona XtraBackup:

[root@online-db soft]#  yum install -y percona-xtrabackup-24 
Repository epel is listed more than once in the configuration
Percona Release release/noarch YUM repository                                                                                                               2.0 kB/s | 1.6 kB     00:00    
Percona Tools release/x86_64 YUM repository                                                                                                                  14 kB/s | 3.2 MB     03:56    
Dependencies resolved.
============================================================================================================================================================================================
 Package                                            Architecture                        Version                                     Repository                                         Size
============================================================================================================================================================================================
Installing:
 percona-xtrabackup-24                              x86_64                              2.4.23-1.el8                                tools-release-x86_64                              7.7 M
Installing dependencies:
 libev                                              x86_64                              4.24-6.el8                                  AppStream                                          52 k

Transaction Summary
============================================================================================================================================================================================
Install  2 Packages

Total download size: 7.7 M
Installed size: 7.8 M
Downloading Packages:
(1/2): libev-4.24-6.el8.x86_64.rpm                                                                                                                          638 kB/s |  52 kB     00:00    
(2/2): percona-xtrabackup-24-2.4.23-1.el8.x86_64.rpm                        9% [=======                                                                   ]  21 kB/s | 776 kB     05:46 ETA

(2/2): percona-xtrabackup-24-2.4.23-1.el8.x86_64.rpm                                                                                                         23 kB/s | 7.7 MB     05:43    
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Total                                                                                                                                                        23 kB/s | 7.7 MB     05:43     
warning: /var/cache/dnf/tools-release-x86_64-2ee6961230e618da/packages/percona-xtrabackup-24-2.4.23-1.el8.x86_64.rpm: Header V4 RSA/SHA256 Signature, key ID 8507efa5: NOKEY
Percona Tools release/x86_64 YUM repository                                                                                                                 4.5 MB/s | 4.7 kB     00:00    
Importing GPG key 0x8507EFA5:
 Userid     : "Percona Development Team (Packaging key) <info@percona.com>"
 Fingerprint: 4D1B B29D 63D9 8E42 2B21 13B1 9334 A25F 8507 EFA5
 From       : /etc/pki/rpm-gpg/PERCONA-PACKAGING-KEY
Key imported successfully
Running transaction check
Transaction check succeeded.
Running transaction test
Transaction test succeeded.
Running transaction
  Preparing        :                                                                                                                                                                    1/1 
  Installing       : libev-4.24-6.el8.x86_64                                                                                                                                            1/2 
  Installing       : percona-xtrabackup-24-2.4.23-1.el8.x86_64                                                                                                                          2/2 
  Running scriptlet: percona-xtrabackup-24-2.4.23-1.el8.x86_64                                                                                                                          2/2 
  Verifying        : libev-4.24-6.el8.x86_64                                                                                                                                            1/2 
  Verifying        : percona-xtrabackup-24-2.4.23-1.el8.x86_64                                                                                                                          2/2 

Installed:
  percona-xtrabackup-24-2.4.23-1.el8.x86_64                                                             libev-4.24-6.el8.x86_64                                                            

Complete!
  • 1.
  • 2.
  • 3.
  • 4.
  • 5.
  • 6.
  • 7.
  • 8.
  • 9.
  • 10.
  • 11.
  • 12.
  • 13.
  • 14.
  • 15.
  • 16.
  • 17.
  • 18.
  • 19.
  • 20.
  • 21.
  • 22.
  • 23.
  • 24.
  • 25.
  • 26.
  • 27.
  • 28.
  • 29.
  • 30.
  • 31.
  • 32.
  • 33.
  • 34.
  • 35.
  • 36.
  • 37.
  • 38.
  • 39.
  • 40.
  • 41.
  • 42.
  • 43.
  • 44.
  • 45.
  • 46.
  • 47.
  • 48.
  • 49.

安装完成,进行验证:

[root@online-db soft]# 
[root@online-db soft]# which xtrabackup
/bin/xtrabackup
[root@online-db soft]# which innobackupex
/bin/innobackupex
  • 1.
  • 2.
  • 3.
  • 4.
  • 5.

官方还提供了另外一种方法,此时就不演示了。

posted @   勤奋的蓝猫  阅读(34)  评论(0编辑  收藏  举报  
相关博文:
阅读排行:
· DeepSeek “源神”启动!「GitHub 热点速览」
· 微软正式发布.NET 10 Preview 1:开启下一代开发框架新篇章
· C# 集成 DeepSeek 模型实现 AI 私有化(本地部署与 API 调用教程)
· DeepSeek R1 简明指南:架构、训练、本地部署及硬件要求
· 2 本地部署DeepSeek模型构建本地知识库+联网搜索详细步骤
点击右上角即可分享
微信分享提示