Installing Redis on Ubuntu

wget http://download.redis.io/redis-stable.tar.gz

tar xvzf redis-stable.tar.gz

cd redis-stable

sudo apt-get install make 

sudo apt-get install gcc

sudo apt-get install build-essential

sudo apt-get update

cd redis-stable

make

make test 

如果出现错误"fatal error: jemalloc/jemalloc.h: No such file or directory" , 运行如下命令来make
make distclean  
make  

当然,你现在还是可能报错的,"You need tcl 8.5 or newer in order to run the Redis test"
sudo apt-get install tcl

现在在make test就应该可以了
原文地址:https://www.cnblogs.com/taojintianxia/p/3954209.html