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