Redis installation in CentOS6.4

Source: Internet
Author: User
Tags download redis set set

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

1) A Redis key can only be a string; 2) Redis's values support multiple data types:

A: Strings string

B: Hashed Hash

C: List of strings

D: String set set not repeating, unordered

E: Ordered set sorted set, non-repeating, ordered

F:hyperloglog structure (after the redis2.8.9 version, the algorithm used to do the cardinality statistics. )

No more nonsense, just open the dry!

One, environment-dependent installation

Because the Redis database is a C language development, it is necessary to install the Redis database, the first make,make need C language environment, so the C language compiled environment first configuration, create a script to write the following content and execute:

  

#!/usr/bin/bash        -y install CPP        -y install binutils        -y install glibc        -y installglibc-        kernheaders-y install glibc-common        -y install glibc-devel         -y install gcc        -y install make

Second, the compilation phase

1) Unzip the downloaded redis: Click I download Redis package

TAR-XZVF redis-3.0.7.tar.gz

2) Enter the extracted Redis directory, compile it, execute it:

Make

Note: If there is an error here, you need to add a parameter when you execute make:

Make MALLOC=LIBC

3) Add all Redis commands to the environment variable and execute:

Make install

4) Verify success:

Redis-server--version

Get the following results to illustrate the success of the installation!

Redis installation in CentOS6.4

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.