这里参考了太多教程已经忘了在哪一篇配置成功的了,总之还是编译安装大法。
首先下载:
wget http://download.redis.io/releases/redis-2.8.13.tar.gz
解压缩
tar zxvf redis-2.8.13.tar.gz
切换目录
cd redis-2.8.13
执行make命令,最后几行的输出结果
Hint: To run 'make test' is a good idea ;)
make[1]: Leaving directory `/opt/redis-2.8.13/src'
执行安装命令
make install
提示:
cd src && make install
make[1]: Entering directory `/opt/redis-2.8.13/src'
Hint: To run 'make test' is a good idea ;)
INSTALL install
INSTALL install
INSTALL install
INSTALL install
INSTALL install
make[1]: Leaving directory `/opt/redis-2.8.13/src'
根据提示,执行:cd src && make install
提示:
Hint: To run 'make test' is a good idea ;)
INSTALL install
INSTALL install
INSTALL install
INSTALL install
INSTALL install
按照提示执行:make test
You need tcl 8.5 or newer in order to run the Redis test
make: *** [test] Error 1
然后其实不用tcl,直接运行里面的./redis-server就可以了。
make PREFI X=/usr/local install
你可能在make时需要运行上面的句子来make