当前位置:网站首页>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
边栏推荐
- Remove the default background color of chrome input input box
- 强化学习-学习笔记9 | Multi-Step-TD-Target
- Application practice | the efficiency of the data warehouse system has been comprehensively improved! Data warehouse construction based on Apache Doris in Tongcheng digital Department
- Latest Android advanced interview questions summary, Android interview questions and answers
- Details of the open source framework of microservice architecture
- Two methods of calling WCF service by C #
- Typeorm automatically generates entity classes
- Visual design form QT designer design gui single form program
- Revit secondary development - shielding warning prompt window
- Revit secondary development - wall opening
猜你喜欢
![[open source] Net ORM accessing Firebird database](/img/a2/4eff4f0af53bf3b9839a73019a212f.png)
[open source] Net ORM accessing Firebird database

php 获取图片信息的方法

ByteDance senior engineer interview, easy to get started, fluent

Pdf document signature Guide
Redis official ORM framework is more elegant than redistemplate

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

Add get disabled for RC form

The function is really powerful!

Px4 autonomous flight

What if the win11u disk does not display? Solution to failure of win11 plug-in USB flash disk
随机推荐
IP network active evaluation system -- x-vision
IP网络主动测评系统——X-Vision
Xcode modifies the default background image of launchscreen and still displays the original image
Use partial derivatives to display normals in unity
Remember aximp once Use of exe tool
DNS series (I): why does the updated DNS record not take effect?
Interview question 01.02 Determine whether it is character rearrangement - auxiliary array algorithm
The essence of analog Servlet
客户案例|华律网,通过观测云大幅缩短故障定位时间
How to judge whether the input content is "number"
Reinforcement learning - learning notes 9 | multi step TD target
PDF文档签名指南
C # Development -- pit encountered in JS intermodulation
反爬通杀神器
Use blocconsumer to build responsive components and monitor status at the same time
MIT6.S081-Lab9 FS [2021Fall]
What if the win11u disk does not display? Solution to failure of win11 plug-in USB flash disk
Revit secondary development - project file to family file
UWA Q & a collection
VTOL in Px4_ att_ Control source code analysis [supplement]