In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-05 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/02 Report--
This article is about how to install redis-dump tools. The editor thinks it is very practical, so share it with you as a reference and follow the editor to have a look.
Redis-dump tool for data migration in clusters
Build the environment:
192.168.19.201 redis-cluster 6379 7001 7002 rvm redis-dump
192.168.19.202 redis-cluster 6379 7001 7002
192.168.19.203 redis-cluster 6379 7001 7002
Because you need to use rvm and gem tools to install redis-dump tools, you should install them in advance.
1. Install the dependency packages needed to install tools such as rvm in advance.
# yum-y install zlib zlib-devel pcre pcre-devel gcc gcc-c++ openssl openssl-devel libevent libevent-devel perl unzip net-tools wget curl
If the dependency above is not installed, an error will be reported.
two。 Install rvm
# gpg2-- keyserver hkp://keys.gnupg.net-- recv-keys D39DC0E3 download key
If the error is displayed
Then you can use the
Curl-sSL https://rvm.io/mpapis.asc | gpg2-- import-
Curl-sSL https://rvm.io/pkuczynski.asc | gpg2-- import-
# curl-L get.rvm.io | bash-s stable-this is another method of installation, but it is also possible
If an error is still displayed
# vim / etc/hosts
97.107.133.48 get.Rvm.io-add content
Just try again.
If the above content is displayed, the installation is successful.
Use the find /-name rvm-print command to view the path of the rvm installation
# find /-name rvm-print-if the result is displayed, the installation is successful
Make the configuration file effective
# source / etc/profile.d/rvm.sh
Download rvm dependency
# rvm requirements
# rvmsudo yum-y install gcc-c++ patch readline readline-devel zlib zlib-devel libyaml-devel openssl-devel make bzip2 autoconf automake libtool bison iconv-devel
The above rvm has been installed!
Install ruby
# yum-y install automake autoconf libtool-dependencies required to install ruby
# yum-y install ruby rubygems ruby-devel-install ruby
Change the gem source
# gem source-- add https://gems.ruby-china.com-create a new gem Chinese local source
# gem source-l-View gem sources
# gem source-remove RubyGems.org | your community gem host-delete foreign official sources
Verify the version:
# rvm-version
# ruby-version
When you are ready, start upgrading the ruby you just used, otherwise ruby2.0.0 cannot install redis-dump
# rvm list known-you can view the installation versions supported by rvm
# rvm install "ruby-2.3.3"-ruby-2.3.3 is installed here (this step will be slow, please keep a good network connection)
It is said here that there are two vulnerabilities in the ruby3.0.0 version, which need to be patched manually
# ruby docs generate-ri
Verify that the version is updated
# ruby-version
Updated successfully!
Install redis-dump
# gem install redis-dump
Hint that
It probably means that you can install a higher version, and you can just follow the orders given by him.
# gem install redis-v 4.4.0
Install successfully, then execute the install redis-dump command
# gem install redis-dump
The above results will be successful.
Thank you for reading! This is the end of this article on "how to install redis-dump tools". I hope the above content can be of some help to you, so that you can learn more knowledge. if you think the article is good, you can share it out for more people to see!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.