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: