当前位置:网站首页>Redis master-slave replication in win10 system
Redis master-slave replication in win10 system
2022-06-26 09:52:00 【Southern Chu Lich】
The article draws on the ideas of this blog , But there are some changes on the basis .
Reference blog :
https://blog.csdn.net/qq_42642549/article/details/108324143
First step :
open Redis The installation path : Copy three copies : Copy redis.windows.conf, They are called 6379、6380、6381, This is shown below .
The second step :
Modify dependent profile :6380.conf、6381.conf Modify the port number in the file port and slaveof
port modify
6380 It is amended as follows port 6380
6381 It is amended as follows port 6381
slaveof modify
slaveof 127.0.0.1 6379
Remember here slaveof There must be no spaces in front of , Otherwise, an error will be reported .
The third step :
Because I tried to write a blog bat When you file , Garbled code will appear during execution , So I choose WIN+R Create the form of three command Windows , Generate 6379、6380、6381 Three windows . Absolute path startup is recommended .
6379
6380
6381
Therefore, it indicates that the master-slave relationship is successful
Step four : Verify whether the master can read and write , Readable from .
In the original installation folder redis-cli.exe, Enter the command set name hopelei
When starting the response segment command :
There will be NOAUTH The situation of , Here you need to enter your account and password , When clients on other ports start , That's what happens , The solution is the same .
After shutting down the primary database , Open one here cmd Program , Enter the following command , Check whether the contents in the master database can be read from the slave database .
Verify that the master-slave replication can exist .
边栏推荐
- 我的创作纪念日
- Upgrade idea to 2021.2 shortcut keys
- LeetCode 0710.黑名单中的随机数 - 预处理实现O(1)取值
- Detailed explanation of the network security competition questions (2) of the 2021 national vocational college skills competition (secondary vocational group)
- 2021年全国职业院校技能大赛(中职组)网络安全竞赛试题(1)详细解析教程
- Why do some functions in the go standard library have only signatures but no function bodies?
- A Style-Based Generator Architecture for Generative Adversarial Networks
- Flink入门——单词统计
- Click the mask layer to close the pop-up window
- Badge collection 6:api\_ Use of level
猜你喜欢

2021-11-29 quintic polynomial of trajectory planning

c语言语法基础之——指针( 多维数组、函数、总结 ) 学习

The basis of C language grammar -- learning of local variables and storage categories, global variables and storage categories, and macro definitions

2021年全国职业院校技能大赛(中职组)网络安全竞赛试题(1)详细解析教程

CVPR:Refining Pseudo Labels with Clustering Consensus over Generations for Unsupervised Object Re-ID
QPM performance monitoring components - General

MapReduce & yarn theory

2021-11-29 轨迹规划五次多项式

thymeleaf中抽取公共片段

MapReduce&Yarn理论
随机推荐
install realsense2: The following packages have unmet dependencies: libgtk-3-dev
自动化测试——关于unitest与pytest初始化共存问题
Does the go compiled executable have dynamic library links?
Upgrade idea to 2021.2 shortcut keys
c语言语法基础之——指针(字符、一维数组) 学习
The 100000 line transaction lock has opened your eyes.
Teach you to use shell script to check whether the server program is running
教你用shell脚本检测服务器程序是否在运行
How does flutter transfer parameters to the next page when switching pages?
TensorFlow动态分配显存
Industrial and enterprise patent matching data (hundreds of thousands of data) 1998-2014
异常记录-23
Click the mask layer to close the pop-up window
Getting started with Flink - word statistics
Halcon photometric stereoscopic
2021年全国职业院校技能大赛(中职组)网络安全竞赛试题(1)详细解析教程
c语言语法基础之——函数嵌套、递归 小程序斐波那契之和、阶乘
LeetCode 958. Completeness checking of binary tree
SQL advanced tutorial
online trajectory generation