redis下载地址
http://www.redis.cn/download.html
需要预先有gcc才可以安装
yum install gcc
如果出现下面的错误则,需要单独make:
cc: error: ../deps/hiredis/libhiredis.a: No such file or directory
cc: error: ../deps/lua/src/liblua.a: No such file or directory
make[1]: *** [redis-server] Error 1
make[1]: Leaving directory `/home/javakid/tools/nosql/redis-3.0.0/src'
make: *** [all] Error 2
cd deps make hiredis lua jemalloc linenoise cd ../ make #启动服务 ./src/redis-server [redis.conf]