Recent work requires Redis cache, because it is also the first time to find a lot of information on the Internet, in this record.
Installing Redis
The system I am using is CentOS 6.6 and the installation steps are as follows:
1. Download the source code, unzip and compile the source code. (If there is no wget command first download yum install wget from yum)
$ wget http://download.redis.io/releases/redis-2.8.3.tar.gz
$ tar xzf redis-2.8.3.tar.gz
$ CD redis-2.8.3
$ make
2. After compiling, in the SRC directory, there are four files
A.redis-server--redis-service side
B.redis-benchmark
C.REDIS-CLI--Redis client
d.redis.conf--Redis configuration file
Copy these files to the/usr/redis directory
Mkdir/usr/redis
CP Redis-server/usr/redis
CP Redis-benchmark/usr/redis
CP Redis-cli/usr/redis
CP Redis.conf/usr/redis
Cd/usr/redis
3. Start the Redis service
./redis-server redis.conf
4. The client then tests if it can connect
./redis-cli
Redis> set Foo Bar
Ok
Redis> get foo
"Bar"
Redis Series One (Redis environment building)