Reids :redis-3.2.5.tar
1、进入redis-3.2.5.tar所在目录,例如:/var/user/redis
#cd /var/user/redis
#tar -xvf redis-3.2.5.tar
#cd redis-3.2.5
2、redis配置文件
#vi redis.conf
3、安装redis
#make
1、错误
/bin/sh: cc: 未找到命令
解决办法:
安装命令:yum -y install gcc automake autoconf lib tool make
2、错误
致命错误:jemalloc/jemalloc.h:没有那个文件或目录
解决办法:
执行命令 make MALLOC=libc
3、错误
执行安装命令
make install
提示:
根据提示,执行: cd src && make install
提示:
按照提示执行:make test
提示:
执行:yum install tcl 命令安装
直接到src目录下执行 ./redis-server 就可以