redis部署主从集群问题

时间:2019-10-10 20:17:00   收藏:0   阅读:65
  1. 解压:

     执行cd /home/redis/redis

       执行tar xvzf redis-stable.tar.gz。

         2.安装GCC依赖:

   执行 cd /home/redis/redis/redis-stable

[root@CentOS7]# yum install gcc gcc-c++      #遇到选择,直接输入y即可
  检查:gcc -v //用于查看gcc版本
 3.然后安装

 开始编译:PREFIX=/home/redis/redis make

 检查编译结果:PREFIX=/home/redis/redis make test

 安装:PREFIX=/home/redis/redis make install


若出现了error:jemalloc/jemalloc.h:没有那个文件或目录

解决方案:
执行命令:make MALLOC=libc

然后cd /home/redis/redis/bin, ./redis-server 启动Redis服务验证,如图所示即说明正确安装。

技术图片

 

 接着修改配置redis.conf文件

 

评论(0
© 2014 mamicode.com 版权所有 京ICP备13008772号-2  联系我们:gaon5@hotmail.com
迷上了代码!