当前位置:网站首页>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
边栏推荐
- npm uninstall和rm直接删除的区别
- Add get disabled for RC form
- UWA Q & a collection
- 新版代挂网站PHP源码+去除授权/支持燃鹅代抽
- Revit secondary development - operation family documents
- Ueeditor custom display insert code
- This experimental syntax requires enabling the parser plugin: ‘optionalChaining‘
- 强化学习-学习笔记9 | Multi-Step-TD-Target
- Build your own website (18)
- 如何选择合适的自动化测试工具?
猜你喜欢

ByteDance senior engineer interview, easy to get started, fluent

OpenGL configuration vs2019

php 获取图片信息的方法

微服务远程Debug,Nocalhost + Rainbond微服务开发第二弹

双塔模型的最强出装,谷歌又开始玩起“老古董”了?

PDF文档签名指南

Two kinds of updates lost and Solutions

How to quickly check whether the opening area ratio of steel mesh conforms to ipc7525

Implementation method of data platform landing

The whole network "chases" Zhong Xuegao
随机推荐
How to make agile digital transformation strategy for manufacturing enterprises
[开源] .Net ORM 访问 Firebird 数据库
[JDBC Part 1] overview, get connection, CRUD
Record a garbled code during servlet learning
Cannot find module 'xxx' or its corresponding type declaration
Ren Qian code compilation error modification
ByteDance Android interview, summary of knowledge points + analysis of interview questions
[environment] pycharm sets the tool to convert QRC into py file
Relationship between URL and URI
Latest Android advanced interview questions summary, Android interview questions and answers
Use json Stringify() to realize deep copy, be careful, there may be a huge hole
The essence of analog Servlet
How to choose the appropriate automated testing tools?
Remember an experience of using selectmany
[azure microservice service fabric] start the performance monitor in the SF node and set the method of capturing the process
MIT6.S081-Lab9 FS [2021Fall]
The latest Android interview collection, Android video extraction audio
Dbsync adds support for mongodb and ES
Remember that a development is encountered in the pit of origin string sorting
npm uninstall和rm直接删除的区别