当前位置:网站首页>Redis cluster installation
Redis cluster installation
2022-07-07 22:37:00 【51CTO】
Here we are Centos7 Operating system redis Take as an example to install
Environmental preparation
Download address http://download.redis.io/releases/redis-3.2.1.tar.gz
Redis The cluster is required to at least 6 Nodes , And it has to be 3 Above version
If it is a lower version, it may appear ruby In the case of low version

Operation user
root
Start installation
Pass the installation package through sftp Or client tools or rz Command and other methods to upload to /root Under the table of contents
Execute the decompression command and extract to /usr/local Under the table of contents
Enter the decompression directory and execute the compilation command ( The installation of the compilation environment will not be repeated here )
stay redis Execute the command to create 6 individual Redis The configuration file
Configure the contents of the configuration file separately as ( The configuration files of different ports configure different ports )
It will record a log every time it writes port and pidfile Need to follow Different increments of folders .
Enter into redis Unzip directory , Execute the command to start each node
Check each node redis process

Create a cluster client


The above figure shows that the startup is successful , You can see three master Three stations slave !
Shutting down the cluster is not repeated here , A little violence directly kills the process , For other ways, please refer to the link https://my.oschina.net/ruoli/blog/2252393
边栏推荐
- OpenGL job - texture
- 如何选择合适的自动化测试工具?
- Failed to initialize rosdep after installing ROS
- VTOL in Px4_ att_ Control source code analysis [supplement]
- PDF文档签名指南
- [problem] pytorch installation
- Remove the default background color of chrome input input box
- C # Development -- pit encountered in JS intermodulation
- 使用 BlocConsumer 同时构建响应式组件和监听状态
- Revit secondary development - shielding warning prompt window
猜你喜欢

ByteDance Android interview, summary of knowledge points + analysis of interview questions

Customer case | China law network, through observing the cloud, greatly shortens the time of fault location

Amesim2016 and matlab2017b joint simulation environment construction

Tcp/ip protocol stack
![[open source] Net ORM accessing Firebird database](/img/a2/4eff4f0af53bf3b9839a73019a212f.png)
[open source] Net ORM accessing Firebird database

海外代理推荐
![[advanced MySQL] index details (I): index data page structure](/img/e7/fe4591a721a71c3c38d6e4448af6af.png)
[advanced MySQL] index details (I): index data page structure

IP网络主动测评系统——X-Vision

Overseas agent recommendation

UnicodeDecodeError: ‘gbk‘ codec can‘t decode byte 0xf9 in position 56: illegal multibyte sequence
随机推荐
Details of the open source framework of microservice architecture
新版代挂网站PHP源码+去除授权/支持燃鹅代抽
双塔模型的最强出装,谷歌又开始玩起“老古董”了?
Anti climbing killer
null == undefined
Pre sale 179000, hengchi 5 can fire? Product power online depends on how it is sold
Record problems fgui tween animation will be inexplicably killed
operator
The difference between NPM uninstall and RM direct deletion
Revit secondary development - intercept project error / warning pop-up
. Net automapper use
Paint basic graphics with custompaint
「开源摘星计划」Loki实现Harbor日志的高效管理
ByteDance senior engineer interview, easy to get started, fluent
ByteDance Android interview, summary of knowledge points + analysis of interview questions
npm uninstall和rm直接删除的区别
Variables and constants
C development - interprocess communication - named pipeline
Antd date component appears in English
Kaggle-Titanic