Redis clusters require the following components to be installed:
Ruby
RubyGems
Redis
----------------------------------------------------------------------------------
Install ruby offline
1: Upload ruby-2.3.1.tar.gz to server;
2:TAR-XZVF ruby-2.3.1.tar.gz;
3:CD ruby-2.3.1
4:./configure--prefix= '/opt/ruby '
5:make
6:make Install
Add Ruby to System environment variables after installation:
7:vim/etc/profile
At the very end, add the following:
Path= $PATH:/opt/ruby/bin
Export PATH
Save exit
8:source/etc/profile
At the end of the Ruby installation, you can see the version of Ruby installed on the current system via RUBY-V
-------------------------------------------------------------------------------------------------------------
Offline Installation RubyGems
1: Download RubyGems installation package (need FQ), here take rubygems-2.6.4.tgz as an example;
2:TAR-XZVF rubygems-2.6.4.tgz;
3:CD rubygems-2.6.4;
4:ruby SETUP.RB, the RubyGems will be installed in the first step of the installation directory of Ruby under the Lib directory;
5: Configure RubyGems Environment variables
Vim/etc/profile
After the $path variable, add:/root/redis/rubygems-2.6.4/bin (the path here is the bin directory path under the extracted file path)
6:source/etc/profile
Now that RubyGems is installed, the Echo $PATH should output the current RubyGems version number: 2.6.4
------------------------------------------------------------------------------------------------
Installing RubyGems's Redis API
1: Download Redis-3.3.0.gem
2:gem install-l Redis-3.3.0.gem
3: Installation Complete, prompt "1 gem installed"
---------------------------------------------------------------------------------------------------
Installing the Redis service side
Installing Redis clusters offline