Linux installation Redis

Source: Internet
Author: User
Tags redis cluster

Redis is a C language development, compiler relies on the GCC environment, if there is no GCC environment, need to install Gcc:yum install gcc-c++

Installing version 3.0, version 3.0 mainly adds the Redis cluster functionality.

1. Download from official website

Http://download.redis.io/releases/redis-3.0.0.tar.gz

Copy the redis-3.0.0.tar.gz to the/usr/local

If you use Linux networking: wget http://download.redis.io/releases/redis-3.0.0.tar.gz

2. Extracting source code

TAR-ZXVF redis-3.0.0.tar.gz

3. Go to the extracted directory to compile

cd/usr/local/redis-3.0.0

Make

4. install to the specified directory, such as/usr/local/redis

cd/usr/local/redis-3.0.0

Make install Prefix=/usr/local/redis

5. Copy the configuration file to the installation directory

Enter the source directory, there is a copy of the configuration file redis.conf, and then copy it to the installation path

Cd/usr/local/redis

Cp/usr/local/redis-3.0.0/redis.conf/usr/local/redis/bin

6. List of files under installation directory bin

redis3.0 New Redis-sentinel is a Redis cluster management tool for high availability.

7. Start

Running Bin/redis-server directly will start in front-end mode, the disadvantage of front-end mode startup is that the SSH command window is closed and the Redis-server program ends, this method is not recommended.

Modify the redis.conf configuration file, daemonize Yes to the backend mode to start.

Redis-server redis.conf

Linux installation Redis

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.