Install Redis in centos 7

Source: Internet
Author: User

Install Redis in centos 7
1.1. What is redis?

Redis is an open-source high-performance key-value database developed in C language. It provides multiple key-value data types to meet the storage requirements in different scenarios. The key-value data types supported by Redis so far are as follows:

Below:

String type

Hash type

List type

Set Type

Ordered collection type 1.2. Redis Installation

Redis is developed in C language and is recommended to run on linux. In this tutorial, Centos6.4 is used as the installation environment.

To install redis, you must first compile the source code downloaded from the official website and compile it based on the gcc environment. If there is no gcc environment, you must install gcc: yum install gcc-c ++.


Redis installation:

$ Wget http://download.redis.io/releases/redis-3.0.1.tar.gz
$ Tar xzf redis-3.0.1.tar.gz
$ Redis-3.0.1 cd
$ Make
$ Make install
After the installation is successful, run the test to check whether the Redis function is normal.
$ Make test

Start
$ Redis-server

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.