当前位置:网站首页>Redis数据迁移:方法一RDB
Redis数据迁移:方法一RDB
2022-07-17 02:30:00 【老王笔记】
单机迁移,通过RDB迁移
源实例:127.0.0.1:7000
目标实例:127.0.0.1:8000
127.0.0.1:7000 中有k1-k100,一共100个key;
step1,redis 7000执行bgsave,保存数据
standalone]# redis-cli -h 127.0.0.1 -p 7000 bgsave
Background saving startedstep2, 拷贝7000.rdb 为8000.rdb
standalone]# cp 7000.rdb 8000.rdbstep3, 启动8000.rdb
standalone]# redis-server 8000.confstep4 验证redis 800中的key
standalone]# redis-cli -h 127.0.0.1 -p 8000 keys "*"
1) "k10"
2) "k4"
3) "k45"
4) "k64"
5) "k67"
6) "k13"
7) "k97"
8) "k90"
9) "k43"
10) "k39"
11) "k68"
12) "k3"
13) "k29"
14) "k26"迁移完毕
边栏推荐
- TS的使用案例——贪吃蛇
- JMeter中如何实现接口之间的关联?
- The adaptation of go language under windows10:vscode
- Common table expression CTE in Clickhouse
- 【MySQL】在云服务器上安装配置mysql,并使用IDEA连接
- 正畸学分支和工具
- automake中文手册_incomplete
- lc marathon 7.16
- Installing PWA application in Google Chrome browser will display more description information
- AI 之 OpenCvSharp 大圖找小圖(案例版)
猜你喜欢
随机推荐
已经25岁了还是一事无成,找不到出路怎么办?做自媒体怎么样?
Fisher linear discriminant analysis
Installing PWA application in Google Chrome browser will display more description information
渗透测试-02漏洞扫描
HCIP实验4
Matlab在线性代数中的应用
【LeetCode】745. Prefix and suffix search
Teaching reform and software platform of entrepreneurship practice simulation
时间轴组件
Number of supported question banks and examination question banks of swiftui examination question bank project (tutorial includes source code)
Hcip day 8 notes
清晰扫描件怎么弄:试试扫描裁缝ScanTailor Advanced吧 | 含scantailor使用方法
Operator, assignment statement, structure description statement
Efficientnet series (1): efficientnetv2 network details
LeetCode 931:下降路径最小和
HRNet
【LeetCode】346. 数据流中的移动平均值
从 0 到 1 开展软件测试
Sparkcore core design: RDD, 220716,
Understanding of random forest









