tar -zxvf redis-4.0.13.tar.gz cd redis-4.0.13 sudo make sudo make install
make install后在 /usr/local/bin里有redis命令
4 缺少jemalloc的解决
如果安装中出现如下错误
1 2 3 4 5 6 7 8
make[1]: Entering directory `/root/Downloads/redis-3.2.0/src' CC adlist.o In file included from adlist.c:34: zmalloc.h:50:31: error: jemalloc/jemalloc.h: No such file or directory zmalloc.h:55:2: error: #error "Newer version of jemalloc required" make[1]: *** [adlist.o] Error 1 make[1]: Leaving directory `/root/Downloads/redis-3.2.0/src' make: *** [all] Error 2