centos体系redis-dump安装

打印 上一主题 下一主题

主题 1961|帖子 1961|积分 5883

马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。

您需要 登录 才可以下载或查看,没有账号?立即注册

x
1. ​Ruby 环境​

Redis-dump 是一个 Ruby 工具,需先安装 Ruby 和 RubyGems。
安装依赖​:

  1. sudo yum install -y curl gpg2 gcc-c++ patch readline readline-devel zlib zlib-devel libyaml-devel libffi-devel openssl-devel make bzip2 autoconf automake libtool bison sqlite-devel
复制代码
  1. Loaded plugins: fastestmirror
  2. Loading mirror speeds from cached hostfile
  3. base                                                                                                                                                                 | 3.6 kB  00:00:00
  4. epel                                                                                                                                                                 | 4.3 kB  00:00:00
  5. extras                                                                                                                                                               | 2.9 kB  00:00:00
  6. updates                                                                                                                                                              | 2.9 kB  00:00:00
  7. No package gpg2 available.
  8. Package gcc-c++-4.8.5-44.el7.x86_64 already installed and latest version
  9. Package patch-2.7.1-12.el7_7.x86_64 already installed and latest version
  10. Package readline-6.2-11.el7.x86_64 already installed and latest version
  11. Package readline-devel-6.2-11.el7.x86_64 already installed and latest version
  12. Package 1:make-3.82-24.el7.x86_64 already installed and latest version
  13. Resolving Dependencies
  14. --> Running transaction check
  15. ---> Package autoconf.noarch 0:2.69-11.el7 will be installed
  16. --> Processing Dependency: perl(Data::Dumper) for package: autoconf-2.69-11.el7.noarch
  17. ---> Package automake.noarch 0:1.13.4-3.el7 will be installed
  18. --> Processing Dependency: perl(Thread::Queue) for package: automake-1.13.4-3.el7.noarch
  19. --> Processing Dependency: perl(TAP::Parser) for package: automake-1.13.4-3.el7.noarch
  20. ---> Package bison.x86_64 0:3.0.4-2.el7 will be installed
  21. ---> Package bzip2.x86_64 0:1.0.6-13.el7 will be installed
  22. ---> Package curl.x86_64 0:7.29.0-59.el7_9.1 will be updated
  23. ---> Package curl.x86_64 0:7.29.0-59.el7_9.2 will be an update
  24. --> Processing Dependency: libcurl = 7.29.0-59.el7_9.2 for package: curl-7.29.0-59.el7_9.2.x86_64
  25. ---> Package libffi-devel.x86_64 0:3.0.13-19.el7 will be installed
  26. ---> Package libtool.x86_64 0:2.4.2-22.el7_3 will be installed
  27. ---> Package libyaml-devel.x86_64 0:0.1.4-11.el7_0 will be installed
  28. ---> Package openssl-devel.x86_64 1:1.0.2k-25.el7_9 will be updated
  29. ---> Package openssl-devel.x86_64 1:1.0.2k-26.el7_9 will be an update
  30. --> Processing Dependency: openssl-libs(x86-64) = 1:1.0.2k-26.el7_9 for package: 1:openssl-devel-1.0.2k-26.el7_9.x86_64
  31. ---> Package sqlite-devel.x86_64 0:3.7.17-8.el7_7.1 will be installed
  32. ---> Package zlib.x86_64 0:1.2.7-20.el7_9 will be updated
  33. ---> Package zlib.x86_64 0:1.2.7-21.el7_9 will be an update
  34. ---> Package zlib-devel.x86_64 0:1.2.7-20.el7_9 will be updated
  35. ---> Package zlib-devel.x86_64 0:1.2.7-21.el7_9 will be an update
  36. --> Running transaction check
  37. ---> Package libcurl.x86_64 0:7.29.0-59.el7_9.1 will be updated
  38. ---> Package libcurl.x86_64 0:7.29.0-59.el7_9.2 will be an update
  39. ---> Package openssl-libs.x86_64 1:1.0.2k-25.el7_9 will be updated
  40. --> Processing Dependency: openssl-libs(x86-64) = 1:1.0.2k-25.el7_9 for package: 1:openssl-1.0.2k-25.el7_9.x86_64
  41. ---> Package openssl-libs.x86_64 1:1.0.2k-26.el7_9 will be an update
  42. ---> Package perl-Data-Dumper.x86_64 0:2.145-3.el7 will be installed
  43. ---> Package perl-Test-Harness.noarch 0:3.28-3.el7 will be installed
  44. ---> Package perl-Thread-Queue.noarch 0:3.02-2.el7 will be installed
  45. --> Running transaction check
  46. ---> Package openssl.x86_64 1:1.0.2k-25.el7_9 will be updated
  47. ---> Package openssl.x86_64 1:1.0.2k-26.el7_9 will be an update
  48. --> Finished Dependency Resolution
  49. Dependencies Resolved
  50. ============================================================================================================================================================================================
  51. Package                                           Arch                                   Version                                             Repository                               Size
  52. ============================================================================================================================================================================================
  53. Installing:
  54. autoconf                                          noarch                                 2.69-11.el7                                         base                                    701 k
  55. automake                                          noarch                                 1.13.4-3.el7                                        base                                    679 k
  56. bison                                             x86_64                                 3.0.4-2.el7                                         base                                    674 k
  57. bzip2                                             x86_64                                 1.0.6-13.el7                                        base                                     52 k
  58. libffi-devel                                      x86_64                                 3.0.13-19.el7                                       base                                     23 k
  59. libtool                                           x86_64                                 2.4.2-22.el7_3                                      base                                    588 k
  60. libyaml-devel                                     x86_64                                 0.1.4-11.el7_0                                      base                                     82 k
  61. sqlite-devel                                      x86_64                                 3.7.17-8.el7_7.1                                    base                                    104 k
  62. Updating:
  63. curl                                              x86_64                                 7.29.0-59.el7_9.2                                   updates                                 271 k
  64. openssl-devel                                     x86_64                                 1:1.0.2k-26.el7_9                                   updates                                 1.5 M
  65. zlib                                              x86_64                                 1.2.7-21.el7_9                                      updates                                  90 k
  66. zlib-devel                                        x86_64                                 1.2.7-21.el7_9                                      updates                                  50 k
  67. Installing for dependencies:
  68. perl-Data-Dumper                                  x86_64                                 2.145-3.el7                                         base                                     47 k
  69. perl-Test-Harness                                 noarch                                 3.28-3.el7                                          base                                    302 k
  70. perl-Thread-Queue                                 noarch                                 3.02-2.el7                                          base                                     17 k
  71. Updating for dependencies:
  72. libcurl                                           x86_64                                 7.29.0-59.el7_9.2                                   updates                                 223 k
  73. openssl                                           x86_64                                 1:1.0.2k-26.el7_9                                   updates                                 494 k
  74. openssl-libs                                      x86_64                                 1:1.0.2k-26.el7_9                                   updates                                 1.2 M
  75. Transaction Summary
  76. ============================================================================================================================================================================================
  77. Install  8 Packages (+3 Dependent packages)
  78. Upgrade  4 Packages (+3 Dependent packages)
  79. Total download size: 7.0 M
  80. Downloading packages:
  81. Delta RPMs disabled because /usr/bin/applydeltarpm not installed.
  82. (1/18): autoconf-2.69-11.el7.noarch.rpm                                                                                                                              | 701 kB  00:00:00
  83. (2/18): automake-1.13.4-3.el7.noarch.rpm                                                                                                                             | 679 kB  00:00:00
  84. (3/18): bison-3.0.4-2.el7.x86_64.rpm                                                                                                                                 | 674 kB  00:00:00
  85. (4/18): bzip2-1.0.6-13.el7.x86_64.rpm                                                                                                                                |  52 kB  00:00:00
  86. (5/18): libffi-devel-3.0.13-19.el7.x86_64.rpm                                                                                                                        |  23 kB  00:00:00
  87. (6/18): libcurl-7.29.0-59.el7_9.2.x86_64.rpm                                                                                                                         | 223 kB  00:00:00
  88. (7/18): curl-7.29.0-59.el7_9.2.x86_64.rpm                                                                                                                            | 271 kB  00:00:00
  89. (8/18): openssl-1.0.2k-26.el7_9.x86_64.rpm                                                                                                                           | 494 kB  00:00:00
  90. (9/18): openssl-devel-1.0.2k-26.el7_9.x86_64.rpm                                                                                                                     | 1.5 MB  00:00:00
  91. (10/18): libtool-2.4.2-22.el7_3.x86_64.rpm                                                                                                                           | 588 kB  00:00:00
  92. (11/18): openssl-libs-1.0.2k-26.el7_9.x86_64.rpm                                                                                                                     | 1.2 MB  00:00:00
  93. (12/18): perl-Data-Dumper-2.145-3.el7.x86_64.rpm                                                                                                                     |  47 kB  00:00:00
  94. (13/18): perl-Test-Harness-3.28-3.el7.noarch.rpm                                                                                                                     | 302 kB  00:00:00
  95. (14/18): perl-Thread-Queue-3.02-2.el7.noarch.rpm                                                                                                                     |  17 kB  00:00:00
  96. (15/18): sqlite-devel-3.7.17-8.el7_7.1.x86_64.rpm                                                                                                                    | 104 kB  00:00:00
  97. (16/18): libyaml-devel-0.1.4-11.el7_0.x86_64.rpm                                                                                                                     |  82 kB  00:00:00
  98. (17/18): zlib-1.2.7-21.el7_9.x86_64.rpm                                                                                                                              |  90 kB  00:00:00
  99. (18/18): zlib-devel-1.2.7-21.el7_9.x86_64.rpm                                                                                                                        |  50 kB  00:00:00
  100. --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
  101. Total                                                                                                                                                        15 MB/s | 7.0 MB  00:00:00
  102. Running transaction check
  103. Running transaction test
  104. Transaction test succeeded
  105. Running transaction
  106.   Updating   : zlib-1.2.7-21.el7_9.x86_64                                                                                                                                              1/25
  107.   Updating   : 1:openssl-libs-1.0.2k-26.el7_9.x86_64                                                                                                                                   2/25
  108.   Updating   : libcurl-7.29.0-59.el7_9.2.x86_64                                                                                                                                        3/25
  109.   Updating   : zlib-devel-1.2.7-21.el7_9.x86_64                                                                                                                                        4/25
  110.   Installing : perl-Data-Dumper-2.145-3.el7.x86_64                                                                                                                                     5/25
  111.   Installing : autoconf-2.69-11.el7.noarch                                                                                                                                             6/25
  112.   Installing : perl-Thread-Queue-3.02-2.el7.noarch                                                                                                                                     7/25
  113.   Installing : perl-Test-Harness-3.28-3.el7.noarch                                                                                                                                     8/25
  114.   Installing : automake-1.13.4-3.el7.noarch                                                                                                                                            9/25
  115.   Installing : libtool-2.4.2-22.el7_3.x86_64                                                                                                                                          10/25
  116.   Updating   : 1:openssl-devel-1.0.2k-26.el7_9.x86_64                                                                                                                                 11/25
  117.   Updating   : curl-7.29.0-59.el7_9.2.x86_64                                                                                                                                          12/25
  118.   Updating   : 1:openssl-1.0.2k-26.el7_9.x86_64                                                                                                                                       13/25
  119.   Installing : sqlite-devel-3.7.17-8.el7_7.1.x86_64                                                                                                                                   14/25
  120.   Installing : bison-3.0.4-2.el7.x86_64                                                                                                                                               15/25
  121.   Installing : bzip2-1.0.6-13.el7.x86_64                                                                                                                                              16/25
  122.   Installing : libffi-devel-3.0.13-19.el7.x86_64                                                                                                                                      17/25
  123.   Installing : libyaml-devel-0.1.4-11.el7_0.x86_64                                                                                                                                    18/25
  124.   Cleanup    : 1:openssl-devel-1.0.2k-25.el7_9.x86_64                                                                                                                                 19/25
  125.   Cleanup    : 1:openssl-1.0.2k-25.el7_9.x86_64                                                                                                                                       20/25
  126.   Cleanup    : curl-7.29.0-59.el7_9.1.x86_64                                                                                                                                          21/25
  127.   Cleanup    : zlib-devel-1.2.7-20.el7_9.x86_64                                                                                                                                       22/25
  128.   Cleanup    : libcurl-7.29.0-59.el7_9.1.x86_64                                                                                                                                       23/25
  129.   Cleanup    : 1:openssl-libs-1.0.2k-25.el7_9.x86_64                                                                                                                                  24/25
  130.   Cleanup    : zlib-1.2.7-20.el7_9.x86_64                                                                                                                                             25/25
  131.   Verifying  : libyaml-devel-0.1.4-11.el7_0.x86_64                                                                                                                                     1/25
  132.   Verifying  : libcurl-7.29.0-59.el7_9.2.x86_64                                                                                                                                        2/25
  133.   Verifying  : libffi-devel-3.0.13-19.el7.x86_64                                                                                                                                       3/25
  134.   Verifying  : automake-1.13.4-3.el7.noarch                                                                                                                                            4/25
  135.   Verifying  : zlib-1.2.7-21.el7_9.x86_64                                                                                                                                              5/25
  136.   Verifying  : 1:openssl-devel-1.0.2k-26.el7_9.x86_64                                                                                                                                  6/25
  137.   Verifying  : bzip2-1.0.6-13.el7.x86_64                                                                                                                                               7/25
  138.   Verifying  : perl-Test-Harness-3.28-3.el7.noarch                                                                                                                                     8/25
  139.   Verifying  : 1:openssl-libs-1.0.2k-26.el7_9.x86_64                                                                                                                                   9/25
  140.   Verifying  : perl-Thread-Queue-3.02-2.el7.noarch                                                                                                                                    10/25
  141.   Verifying  : zlib-devel-1.2.7-21.el7_9.x86_64                                                                                                                                       11/25
  142.   Verifying  : 1:openssl-1.0.2k-26.el7_9.x86_64                                                                                                                                       12/25
  143.   Verifying  : libtool-2.4.2-22.el7_3.x86_64                                                                                                                                          13/25
  144.   Verifying  : perl-Data-Dumper-2.145-3.el7.x86_64                                                                                                                                    14/25
  145.   Verifying  : curl-7.29.0-59.el7_9.2.x86_64                                                                                                                                          15/25
  146.   Verifying  : bison-3.0.4-2.el7.x86_64                                                                                                                                               16/25
  147.   Verifying  : sqlite-devel-3.7.17-8.el7_7.1.x86_64                                                                                                                                   17/25
  148.   Verifying  : autoconf-2.69-11.el7.noarch                                                                                                                                            18/25
  149.   Verifying  : zlib-devel-1.2.7-20.el7_9.x86_64                                                                                                                                       19/25
  150.   Verifying  : 1:openssl-1.0.2k-25.el7_9.x86_64                                                                                                                                       20/25
  151.   Verifying  : 1:openssl-libs-1.0.2k-25.el7_9.x86_64                                                                                                                                  21/25
  152.   Verifying  : 1:openssl-devel-1.0.2k-25.el7_9.x86_64                                                                                                                                 22/25
  153.   Verifying  : libcurl-7.29.0-59.el7_9.1.x86_64                                                                                                                                       23/25
  154.   Verifying  : curl-7.29.0-59.el7_9.1.x86_64                                                                                                                                          24/25
  155.   Verifying  : zlib-1.2.7-20.el7_9.x86_64                                                                                                                                             25/25
  156. Installed:
  157.   autoconf.noarch 0:2.69-11.el7     automake.noarch 0:1.13.4-3.el7          bison.x86_64 0:3.0.4-2.el7               bzip2.x86_64 0:1.0.6-13.el7   libffi-devel.x86_64 0:3.0.13-19.el7
  158.   libtool.x86_64 0:2.4.2-22.el7_3   libyaml-devel.x86_64 0:0.1.4-11.el7_0   sqlite-devel.x86_64 0:3.7.17-8.el7_7.1
  159. Dependency Installed:
  160.   perl-Data-Dumper.x86_64 0:2.145-3.el7                         perl-Test-Harness.noarch 0:3.28-3.el7                         perl-Thread-Queue.noarch 0:3.02-2.el7
  161. Updated:
  162.   curl.x86_64 0:7.29.0-59.el7_9.2              openssl-devel.x86_64 1:1.0.2k-26.el7_9              zlib.x86_64 0:1.2.7-21.el7_9              zlib-devel.x86_64 0:1.2.7-21.el7_9
  163. Dependency Updated:
  164.   libcurl.x86_64 0:7.29.0-59.el7_9.2                            openssl.x86_64 1:1.0.2k-26.el7_9                            openssl-libs.x86_64 1:1.0.2k-26.el7_9
  165. Complete!
复制代码
2. ​导入 RVM 官方 GPG 密钥

某些 Ruby Gem 可能需要编译当地扩展,需安装构建工具和依赖库:
  1. gpg2 --recv-keys 409B6B1796C275462A1703113804BB82D39DC0E3 7D2BAF1CF37B13E2069D6956105BD0E739499BD
复制代码
  1. ➜  /opt gpg2 --recv-keys 409B6B1796C275462A1703113804BB82D39DC0E3 7D2BAF1CF37B13E2069D6956105BD0E739499BD
  2. gpg: directory `/root/.gnupg' createdgpg: new configuration file `/root/.gnupg/gpg.conf' createdgpg: WARNING: options in `/root/.gnupg/gpg.conf' are not yet active during this rungpg: keyring `/root/.gnupg/secring.gpg' createdgpg: keyring `/root/.gnupg/pubring.gpg' createdgpg: "7D2BAF1CF37B13E2069D6956105BD0E739499BD" not a key ID: skippinggpg: no keyserver known (use option --keyserver)gpg: keyserver receive failed: Syntax error in URI
复制代码
3. ​安装 RVM

直接通过 RubyGems 安装:
  1. curl -sSL https://get.rvm.io | bash -s stable
复制代码
[code]➜  /opt curl -sSL https://get.rvm.io | bash -s stable
Downloading https://github.com/rvm/rvm/archive/1.29.12.tar.gzDownloading https://github.com/rvm/rvm/releases/download/1.29.12/1.29.12.tar.gz.asccurl: (52) Empty reply from serverCould not download 'https://github.com/rvm/rvm/releases/download/1.29.12/1.29.12.tar.gz.asc'.  curl returned status '52'.Creating group 'rvm'Installing RVM to /usr/local/rvm/            source /etc/profileInstallation of RVM in /usr/local/rvm/ is almost complete:  * First you need to add all users that will be using rvm to 'rvm' group,    and logout - login again, anyone using rvm will be operating with `umask u=rwx,g=rwx,o=rx`.  * To start using RVM you need to run `source /etc/profile.d/rvm.sh
`    in all your open shell windows, in rare cases you need to reopen all shell windows.  * Please do NOT forget to add your users to the rvm group.     The installer no longer auto-adds root or users to the rvm group. Admins must do this.     Also, please note that group memberships are ONLY evaluated at login time.     This means that users must log out then back in before group membership takes effect!Thanks for installing RVM
回复

使用道具 举报

0 个回复

倒序浏览

快速回复

您需要登录后才可以回帖 登录 or 立即注册

本版积分规则

魏晓东

论坛元老
这个人很懒什么都没写!
快速回复 返回顶部 返回列表