当前位置:网站首页>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 .
边栏推荐
- Thinking before QPM preparation optimization
- 工企专利匹配数据(数十万数据量)1998-2014年
- Solve Django's if Version (1, 3, 3): raise improverlyconfigured ('mysqlclient 1.3.3 or new is required
- Wechat official account reported error 10003
- halcon 光度立体
- My creation anniversary
- c语言语法基础之——局部变量及存储类别、全局变量及存储类别、宏定义 学习
- LeetCode 基本计算器 224. 227. follow up 394
- install opencv-contrib-dev to use aruco code
- Joint Noise-Tolerant Learning and Meta Camera Shift Adaptation for Unsupervised Person Re-ID
猜你喜欢
The basis of C language grammar -- learning of local variables and storage categories, global variables and storage categories, and macro definitions
How to create an IE tab in edge browser
#云原生征文# 在 Google Kubernetes Cluster 上使用 HANA Expression Database Service
Badge series 8: generate a personalized Badge
Jz2440--- using uboot burning program
A Style-Based Generator Architecture for Generative Adversarial Networks
2021年全国职业院校技能大赛(中职组)网络安全竞赛试题(1)详细解析教程
Learning to Generalize Unseen Domains via Memory-based Multi-Source Meta-Learning for Person Re-ID
QPM suspended window setting information
【轨迹规划】Ruckig库的测试
随机推荐
SQL高级教程
pcl install
爬虫相关文章收藏:pyppeteer 、Burpsuite
Meaning of go runtime
thinkphp6.0的第三方扩展包,支持上传阿里云,七牛云
Regular expression learning
2021-11-12 vrep视觉传感器配置
Teach you to use shell script to check whether the server program is running
Basic grammar of C language -- pointer (character, one-dimensional array) learning
Why do some functions in the go standard library have only signatures but no function bodies?
Differences between VI and vim and common commands
2021年全国职业院校技能大赛(中职组)网络安全竞赛试题(1)详细解析教程
我在中山,到哪里开户比较好?在线开户安全么?
LeetCode 958. Completeness checking of binary tree
2021-11-29 轨迹规划五次多项式
同花顺炒股软件安全性怎样?在同花顺怎么开户
Leetcode refers to offer II 091 Paint house - modify in place
Halcon photometric stereoscopic
install opencv-contrib-dev to use aruco code
VI summary of common commands