当前位置:网站首页>19_Redis_宕机后手动配置主机
19_Redis_宕机后手动配置主机
2022-07-02 12:00:00 【听*雨声】
主从配置模式:
模式一:
模式二:毛毛虫式
如果没有老大了(6379宕机了),这个时候能不能选择一个老大出来呢?在哨兵模式没有出来之前,选取老大的操作需要手动完成
配置命令:在存活的从机 6380 执行命令:SLAVEOF no one
如果主机断开了连接,我们可以使用SLAVEOF no one让自己变成主机! 如果这个时候老大修复了(6379重启),老大就是光杆司令,需要重新配置!
边栏推荐
- Database connection pool and data source
- Advanced C language (learn malloc & calloc & realloc & free in simple dynamic memory management)
- Error: NPM warn config global ` --global`, `--local` are deprecated Use `--location=global` instead.
- Apprendre le Code de la méthode de conversion du calendrier lunaire grégorien en utilisant PHP
- How to conduct TPC-C test on tidb
- GeoServer offline map service construction and layer Publishing
- vChain: Enabling Verifiable Boolean Range Queries over Blockchain Databases(sigmod‘2019)
- Kityformula editor configure font size and spacing
- C# richTextBox控制显示最大行数
- 数据库内容输出有问题怎么解决
猜你喜欢
buuctf-pwn write-ups (7)
Fundamentals of software testing
Solve the problem that El radio group cannot be edited after echo
05_队列
GeoServer offline map service construction and layer Publishing
CodeCraft-22 and Codeforces Round #795 (Div. 2)D,E
为什么只会编程的程序员无法成为优秀的开发者?
About text selection in web pages and counting the length of selected text
LeetCode 2320. 统计放置房子的方式数
MFC 定时器使用
随机推荐
Tidb cross data center deployment topology
【NOI模拟赛】伊莉斯elis(贪心,模拟)
06_栈和队列转换
Ad20 cannot select the solution of component packaging in PCB editor
Sharp tool SPL for post SQL calculation
MFC console printing, pop-up dialog box
CodeCraft-22 and Codeforces Round #795 (Div. 2)D,E
记一次报错解决经历依赖重复
geoserver离线地图服务搭建和图层发布
qml 弹窗框架,可定制
Base64 coding can be understood this way
SQL 后计算的利器 SPL
[QNX hypervisor 2.2 user manual]6.3 communication between guest and external
Fundamentals of software testing
Record an error report, solve the experience, rely on repetition
编译原理课程实践——实现一个初等函数运算语言的解释器或编译器
mathjax 入门(web显示数学公式,矢量的)
C thread transfer parameters
CodeCraft-22 and Codeforces Round #795 (Div. 2)D,E
LeetCode_滑动窗口_中等_395.至少有 K 个重复字符的最长子串