当前位置:网站首页>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
边栏推荐
- [open source] Net ORM accessing Firebird database
- Revit secondary development - intercept project error / warning pop-up
- 【Azure微服务 Service Fabric 】如何转移Service Fabric集群中的种子节点(Seed Node)
- 如何选择合适的自动化测试工具?
- Dbsync adds support for mongodb and ES
- Matplotlib quick start
- Understand the autograd package in pytorch
- 强化学习-学习笔记9 | Multi-Step-TD-Target
- Unity development --- the mouse controls the camera to move, rotate and zoom
- [开源] .Net ORM 访问 Firebird 数据库
猜你喜欢
Redis官方ORM框架比RedisTemplate更优雅
新版代挂网站PHP源码+去除授权/支持燃鹅代抽
[advanced MySQL] index details (I): index data page structure
The PHP source code of the new website + remove authorization / support burning goose instead of pumping
Add get disabled for RC form
[environment] pycharm sets the tool to convert QRC into py file
UWA问答精选
Use blocconsumer to build responsive components and monitor status at the same time
Paint basic graphics with custompaint
Visual design form QT designer design gui single form program
随机推荐
Welcome to CSDN markdown editor
[azure microservice service fabric] the service fabric cluster hangs up because the certificate expires (the upgrade cannot be completed, and the node is unavailable)
UWA问答精选
Node:504 error reporting
海外代理推荐
Customer case | China law network, through observing the cloud, greatly shortens the time of fault location
Signal feature extraction +lstm to realize gear reducer fault diagnosis -matlab code
Visual design form QT designer design gui single form program
C # realizes the communication between Modbus protocol and PLC
How to close eslint related rules
[azure microservice service fabric] start the performance monitor in the SF node and set the method of capturing the process
Cataloger integrates lidar and IMU for 2D mapping
Aspose. Word operation word document (I)
PHP records the pitfalls encountered in the complete docking of Tencent cloud live broadcast and im live group chat
Details of the open source framework of microservice architecture
Xcode modifies the default background image of launchscreen and still displays the original image
What is the difference between the three values of null Nan undefined in JS
Remove the default background color of chrome input input box
Dbsync adds support for mongodb and ES
OpeGL personal notes - lights