当前位置:网站首页>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
边栏推荐
- How to choose the appropriate automated testing tools?
- Ueeditor custom display insert code
- Remember that a development is encountered in the pit of origin string sorting
- vite Unrestricted file system access to
- npm uninstall和rm直接删除的区别
- OpenGL job coordinate system
- Revit secondary development - cut view
- Px4 autonomous flight
- Revit secondary development - intercept project error / warning pop-up
- [JDBC Part 1] overview, get connection, CRUD
猜你喜欢
[problem] pytorch installation
双塔模型的最强出装,谷歌又开始玩起“老古董”了?
[environment] pycharm sets the tool to convert QRC into py file
如何实现横版游戏中角色的移动控制
Remember aximp once Use of exe tool
How to make agile digital transformation strategy for manufacturing enterprises
应用实践 | 数仓体系效率全面提升!同程数科基于 Apache Doris 的数据仓库建设
null == undefined
Pdf document signature Guide
Record a garbled code during servlet learning
随机推荐
Relationship between URL and URI
Antd date component appears in English
使用 CustomPaint 绘制基本图形
How to close eslint related rules
戴森官方直营店免费造型服务现已开放预约 先锋科技诠释护发造型理念,助力消费者解锁多元闪耀造型
Pdf document signature Guide
Revit secondary development - intercept project error / warning pop-up
Visual design form QT designer design gui single form program
Get the exact offset of the element
OpeGL personal notes - lights
反爬通杀神器
Record a garbled code during servlet learning
JS number is insufficient, and 0 is added
Reinforcement learning - learning notes 9 | multi step TD target
How to judge whether the input content is "number"
Revit secondary development - modify wall thickness
Details of the open source framework of microservice architecture
How to quickly check whether the opening area ratio of steel mesh conforms to ipc7525
Cannot find module 'xxx' or its corresponding type declaration
【Azure微服务 Service Fabric 】因证书过期导致Service Fabric集群挂掉(升级无法完成,节点不可用)