Install Redis in CentOS6.4

Source: Internet
Author: User
Tags redis cluster

Install Redis in CentOS6.4

First, we will introduce the Redis database. Redis is a memory database for "key/value" pairs of data types, which can meet our needs for reading and writing massive data.

1) redis keys can only be strings; 2) redis values support multiple data types:

A: string

B: hash

C: String list

D: The string set is not repeated and unordered.

E: sorted set, which is an ordered set.

F: HyperLogLog structure (available only after redis2.8.9, used for base statistics algorithms .)

If you don't talk much about it, just start it!

1. Environment-dependent Installation

Because the Redis database is developed in C language, make and make must be performed in the C language environment when the Redis database is installed. Therefore, configure the C language compiling environment first, create a script to write and execute the following content:

#! /Usr/bin/bash
Yum-y install cpp
Yum-y install binutils
Yum-y install glibc
Yum-y install glibc-kernheaders
Yum-y install glibc-common
Yum-y install glibc-devel
Yum-y install gcc
Yum-y install make

Ii. compilation phase

1) decompress the downloaded Redis package: Click here to download the Redis package

tar -xzvf redis-3.0.7.tar.gz

2) enter the decompressed Redis directory, compile it, and execute:

make

Note: if there is an error, you need to add a parameter when executing make:

make MALLOC=libc

3) add all Redis commands to the environment variables and execute:

make install

4) check whether the verification is successful:

redis-server --version

The installation is successful!

You may also like the following articles about Redis. For details, refer:

Install and test Redis in Ubuntu 14.04

Basic configuration of Redis master-slave Replication

Redis cluster details

Install Redis in Ubuntu 12.10 (graphic explanation) + Jedis to connect to Redis

Redis series-installation, deployment, and maintenance

Install Redis in CentOS 6.3

Learning notes on Redis installation and deployment

Redis. conf

Redis details: click here
Redis: click here

This article permanently updates the link address:

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.