当前位置:网站首页>Redis data migration method 4
Redis data migration method 4
2022-07-19 03:53:00 【Lao Wang's notes】
Synchronize data through master-slave mode
start-up 2 An example , Turn on AOF Backup
Source instance :127.0.0.1:7000
Examples of goals :127.0.0.1:8000
Step1: Log in to the target instance , adopt slaveof From the role to the source instance
bak]# redis-cli -h 127.0.0.1 -p 8000
127.0.0.1:8000> slaveof 127.0.0.1 7000
OK
127.0.0.1:8000> info replication
# Replication
role:slave
master_host:127.0.0.1
master_port:7000
master_link_status:up
master_last_io_seconds_ago:6
master_sync_in_progress:0
slave_read_repl_offset:14
slave_repl_offset:14Step2: Verify synchronization data
127.0.0.1:8000> keys *
1) "k2"
2) "sname"
3) "k10"
4) "k4"
5) "hclass1"
6) "k8"
7) "k9"
8) "hclass2"
9) "k3"
10) "k6"
11) "hclass3"
12) "lname"
13) "k1"
14) "k7"
15) "k5"Step3, Disconnect master-slave synchronization
127.0.0.1:8000> slaveof no one
OK
127.0.0.1:8000>
127.0.0.1:8000> 边栏推荐
- (21)Blender源码分析之鼠标按下消息添加到队列的过程
- Automake Chinese Manual_ incomplete
- [nodejs] npm/nrm cannot load the file because the script solution is prohibited in this system
- Matlab在线性代数中的应用
- AI 之 OpenCvSharp 大图找小图(案例版)
- Group 卷积
- 1255. Dynamic programming for state compression of the word set with the highest score
- Introduction of modules (block, module)
- Nim博奔问题
- Swagger
猜你喜欢
随机推荐
数学建模比赛论文模板格式
电脑端实现微信双开(登录两个微信)
KlakNdI 同步画面简单使用
Redis數據遷移方法三
central limit theorem
1255. Dynamic programming for state compression of the word set with the highest score
Chapter 4 用户数据分析
How to paste data in Excel into CXGRID
HCIP第六天笔记
Conduct software testing from 0 to 1
Paper template format of mathematical modeling competition
Penetration test-01 information collection
Hcip Experiment 5
DataX DorisWriter 插件文档
《创业实践模拟》课程教学改革及软件平台
Properties of Gaussian distribution (including code)
如何在自动化测试中使用MitmProxy获取数据返回?
Boston house price analysis assignment summary
程序员生涯写过最大的Bug!网友:高低是个P8水平!
Teaching reform and software platform of entrepreneurship practice simulation









