Installing Redis clusters offline

Source: Internet
Author: User
Tags download redis

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

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.