redis install

下载 : http://redis.io/download

1
2
3
4
tar xzvf redis-2.8.19.tar.gz
cd redis-2.8.19

make 

PREFIX=/home/mahao01/local/redis-2.8.19

 make test

make PREFIX=/some/other/directory install

遇到 You need tcl 8.5 or newer in order to run the Redis test 

1
2
3
4
5
6
wget http://downloads.sourceforge.net/tcl/tcl8.6.1-src.tar.gz 
 tar xzvf tcl8.6.1-src.tar.gz
 cd tcl8.6.1
./configure --prefix=/home/mahao01/local/tcl8.6.1
make
make install

加到    .bash_prof 的PAHT 和 LD_LIBRARY_PATH 中

原文地址:https://www.cnblogs.com/allenhaozi/p/4508402.html