当前位置:网站首页>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
边栏推荐
- Pre sale 179000, hengchi 5 can fire? Product power online depends on how it is sold
- 【Azure微服务 Service Fabric 】在SF节点中开启Performance Monitor及设置抓取进程的方式
- Reinforcement learning - learning notes 9 | multi step TD target
- 双塔模型的最强出装,谷歌又开始玩起“老古董”了?
- SAR image quality evaluation
- [azure microservice service fabric] the service fabric cluster hangs up because the certificate expires (the upgrade cannot be completed, and the node is unavailable)
- operator
- Time standard library
- Revit secondary development - get the project file path
- Revit secondary development - wall opening
猜你喜欢
Robot autonomous exploration DSVP: code parsing
Overseas agent recommendation
Ueeditor custom display insert code
What does it mean to prefix a string with F?
Antd date component appears in English
VTOL in Px4_ att_ Control source code analysis [supplement]
Time convolution Network + soft threshold + attention mechanism to realize residual life prediction of mechanical equipment
【Azure微服务 Service Fabric 】因证书过期导致Service Fabric集群挂掉(升级无法完成,节点不可用)
Tcp/ip protocol stack
Implementation method of data platform landing
随机推荐
Revit secondary development - get the project file path
Application practice | the efficiency of the data warehouse system has been comprehensively improved! Data warehouse construction based on Apache Doris in Tongcheng digital Department
100million single men and women "online dating", supporting 13billion IPOs
变量与常量
Cannot find module 'xxx' or its corresponding type declaration
Where is the big data open source project, one-stop fully automated full life cycle operation and maintenance steward Chengying (background)?
[colmap] sparse reconstruction is converted to mvsnet format input
Kaggle-Titanic
php 获取图片信息的方法
客户案例|华律网,通过观测云大幅缩短故障定位时间
C development - interprocess communication - named pipeline
Welcome to CSDN markdown editor
OpenGL configure assimp
ASP.NET Core入门五
Robot autonomous exploration DSVP: code parsing
Revit secondary development - operation family documents
Revit secondary development - modify wall thickness
JS number is insufficient, and 0 is added
Redis official ORM framework is more elegant than redistemplate
Build your own website (18)