1.使用tar -xzvf redis-2.4.5.tar.gz来解压安装包
2.使用make命令来编译Redis 如果出现错误需要查看是否缺少gcc gcc-c++
zmalloc.h:50:31: error: jemalloc/jemalloc.h: No such file or directoryzmalloc.h:55:2: error: #error "Newer version of jemalloc required"make[1]: *** [adlist.o] Error 1make[1]: Leaving directory `/data0/src/redis-2.6.2/src’make: *** [all] Error 2解决办法是:make MALLOC=libc
3.make install
车到山前必有路,没路可以先开路,开路就得有乐观,