一,Redis的的的的简介
官网给的定义大概意思是:Redis的的的的是一个开源,内存数据结构存储,用作数据库,缓存和消息代理它支持的数据结构有:字符串,哈希,列表,集合,有序集合,位图,超级日志和具有半径查询的地理空间索引.Redis是一个高性能的支持主从同步的键 - 值数据库。
二,集群搭建
1>系统环境
本地用的VirtualBox虚拟虚拟的安装三台配置一样的的的Centos下的虚拟机
查看版本:
2>三主三从架构说明
三台服务器,启动6个实例,形成三主三从,其中存储相同数据的主从节点不能落在同一台机器上,目的是防止部署的Redis的的的的虚拟机宕机从而造成主从节点全部失效实验机器的地址与端口如下:
IP端口
10.252.21.154 7000
10.252.21.154 7001
10.252.21.156 7000
10.252.21.156 7001
10.252.21.157 7000
10.252.21.157 7001
3>安装
在三台机器上全部执行如下操作: