Centos 7 installation configuration Redis-3.0.0

Source: Internet
Author: User
Tags redis cluster

Centos 7 installation configuration Redis-3.0.0

Centos 7 installation configuration Redis-3.0.0

1. install necessary packages

yum install gcc

Ii. Installation in Linux

# Download wget http://download.redis.io/releases/redis-3.0.0.tar.gztar zxvf redis-3.0.0.tar.gzcd redis-3.0.0 # If you do not add parameters, linux will report the error make MALLOC = libc

After installation, start the file

# Start redissrc/redis-server & # disable redissrc/redis-cli shutdown

Test redis

$ src/redis-cli127.0.0.1:6379> set foo barOK127.0.0.1:6379> get foo"bar"$ 

Test successful

3. Create a redis cluster

Create a local test environment

Create a running directory

# Create redis run directory mkdir-p redis-server/7000/# copy the default configuration document cp redis-3.0.0/redis. conf redis-server/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.