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