当前位置:网站首页>Redis集群安装
Redis集群安装
2022-07-07 21:44:00 【51CTO】
以下我们在Centos7操作系统上以redis为例来进行一下安装
环境准备
Redis 要求集群至少6个节点,而且必须是3版本以上
如果为低版本可能会出现ruby版本过低的情况

操作用户
root
开始安装
将安装包通过sftp或者客户端工具或者rz命令等方式上传至/root目录下
执行解压命令并解压到/usr/local目录下
进入到解压目录执行编译命令(编译环境的安装这里不再赘述)
在redis的解压目录中执行命令创建6个Redis配置文件
分别配置配置文件的内容为(不同端口的配置文件配置不同的端口)
它每次写操作都会记录一条日志其中 port 和 pidfile 需要随着 文件夹的不同递增。
进入到redis的解压目录,执行命令启动各个节点
检查各个节点redis进程

创建集群客户端


出现上图说明启动成功,可以看到三台master三台slave !
关闭集群这里不在赘述,暴力一点直接杀进程,其他方式可以参考一下链接 https://my.oschina.net/ruoli/blog/2252393
边栏推荐
- Ren Qian code compilation error modification
- OpenGL job - texture
- [interview arrangement] 0211 game engine server
- SAR image quality evaluation
- Node:504 error reporting
- [open source] Net ORM accessing Firebird database
- Customer case | China law network, through observing the cloud, greatly shortens the time of fault location
- [azure microservice service fabric] the service fabric cluster hangs up because the certificate expires (the upgrade cannot be completed, and the node is unavailable)
- Latest Android advanced interview questions summary, Android interview questions and answers
- Time standard library
猜你喜欢

Ueeditor custom display insert code

如何实现横版游戏中角色的移动控制

Cannot find module 'xxx' or its corresponding type declaration

It's worth seeing. Interview sites and interview skills

Robot autonomous exploration DSVP: code parsing

【Azure微服务 Service Fabric 】在SF节点中开启Performance Monitor及设置抓取进程的方式

客户案例|华律网,通过观测云大幅缩短故障定位时间

Reinforcement learning - learning notes 9 | multi step TD target
Redis官方ORM框架比RedisTemplate更优雅
Latest Android advanced interview questions summary, Android interview questions and answers
随机推荐
[open source] Net ORM accessing Firebird database
This experimental syntax requires enabling the parser plugin: ‘optionalChaining‘
Matplotlib quick start
Px4 autonomous flight
Programming mode - table driven programming
The latest Android interview collection, Android video extraction audio
Revit secondary development - wall opening
强化学习-学习笔记9 | Multi-Step-TD-Target
Revit secondary development - operation family documents
【Azure微服务 Service Fabric 】在SF节点中开启Performance Monitor及设置抓取进程的方式
Record problems fgui tween animation will be inexplicably killed
ByteDance Android interview, summary of knowledge points + analysis of interview questions
The free styling service of Dyson's official direct store is now open for appointment. Pioneer Technology interprets the styling concept of hair care and helps consumers unlock diversified and shiny s
Two methods of calling WCF service by C #
PKPM 2020软件安装包下载及安装教程
强化学习-学习笔记9 | Multi-Step-TD-Target
#DAYU200体验官#MPPT光伏发电项目 DAYU200、Hi3861、华为云IotDA
Customer case | China law network, through observing the cloud, greatly shortens the time of fault location
Robot autonomous exploration DSVP: code parsing
DBSync新增对MongoDB、ES的支持