http://www.cnblogs.com/silent2012/p/3499654.html
1. Download the source code, decompress it and compile the source code.
$ 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 the compilation is completed, there are four executable files redis-server, redis-benchmark, redis-cli and redis.conf in the Src directory. Then copy to a directory.
mkdir /usr/redis cp redis-server /usr/redis cp redis-benchmark /usr/redis cp redis -cli /usr/ redis cp redis.conf /usr/ redis (conf is in the upper directory of src) cd /usr/redis