Redis安装

下载命令:

wget http://download.redis.io/releases/redis-3.2.x.tar.gz

拷贝、解压:

cp redis-3.2.x /usr/local

cd /usr/local

tar -xvzf redis-3.2.x.tar.gz

安装

cd /usr/local/redis-3.2.1/src

make install

报错 make: cc: Command not found make: * [adlist.o] Error 127

解决:安装gcc

yum install gcc

报错 error: jemalloc/jemalloc.h: No such file or directory

解决:

vi /usr/local/redis-3.2.1/README.md

将 % make MALLOC=libc 前的%号去掉

报错You need tcl 8.5 or newer in order to run the Redis test

解决:

wget http://downloads.sourceforge.net/tcl/tcl8.6.1-src.tar.gz

cp tcl8.6.1-src.tar.gz /usr/local

cd /usr/local

tar -xvzf tcl8.6.1-src.tar.gz

cd tcl8.6.1-src/unix

./configure

make

make install

启动redis-server,进入到src下,执行命令:

./redis-server /usr/local/redis-3.2.1/redis.conf

添加新评论