本文所使用系统为:CentOs7
[root@CentOs7 ~]# wget http://download.redis.io/releases/redis-2.8.12.tar.gz
[root@CentOs7 ~]# tar xzf redis-2.8.12.tar.gz
[root@CentOs7 ~]# cp redis-2.8.12 /usr/local/redis
[root@CentOs7 ~]# cd redis-2.8.12
[root@CentOs7 redis-2.8.12]# make
[root@CentOs7 redis-2.8.12]# make install
编译成功;启动并运行redis:
[root@CentOs7 redis-2.8.12]# src/redis-server
[root@CentOs7 redis-2.8.12]# ./redis-cli
127.0.0.1:6379> set name chenzhou
OK
127.0.0.1:6379> get name
"chenzhou"