下载编译
- 下载:wget http://download.redis.io/releases/redis-4.0.6.tar.gz
- 解压:tar -zxvf redis-4.0.6.tar.gz
- 安装依赖:yum install gcc
- 编译:cd redis-4.0.6 && make MALLOC=libc
- 追加文件:cd src && make install
启动
- 修改redis.conf文件
daemonize yes
- 启动
./redis-server /usr/local/redis-4.0.6/redis.conf
来源:oschina
链接:https://my.oschina.net/chinahufei/blog/3220437