当前位置:网站首页>[redis sentinel] failed listening on port 26379 (TCP) & sentinel mode no response problem solved
[redis sentinel] failed listening on port 26379 (TCP) & sentinel mode no response problem solved
2022-06-12 23:13:00 【Wave point rabbit】
List of articles
problem 1 Failed listening on port 26379 (TCP)
The error information is as follows , This problem is usually caused by the port being occupied , Kill the sentinel process and restart a sentinel process .
[email protected]:/usr/local/bin# redis-sentinel myredisconfig/sentinel.conf
423:X 28 Feb 2022 09:22:32.725 # oO0OoO0OoO0Oo Redis is starting oO0OoO0OoO0Oo
423:X 28 Feb 2022 09:22:32.725 # Redis version=6.2.6, bits=64, commit=00000000, modified=0, pid=423, just started
423:X 28 Feb 2022 09:22:32.725 # Configuration loaded
423:X 28 Feb 2022 09:22:32.726 * Increased maximum number of open files to 10032 (it was originally set to 1024).
423:X 28 Feb 2022 09:22:32.726 * monotonic clock: POSIX clock_gettime
423:X 28 Feb 2022 09:22:32.726 # Warning: Could not create server TCP listening socket 127.0.0.1:26379: bind: Address already in use
423:X 28 Feb 2022 09:22:32.726 # Failed listening on port 26379 (TCP), aborting.
ps -ef|grep redis // View sentry progress
kill -9 Sentry progress number

At this point, the sentinel process can be started normally .
problem 2 Sentinel mode is not responding

This problem is usually caused by the configuration file settings , In the green box below 2 The representative should have 2 Sentinels detected master It's down. , Will really think it's dead , And I have only one sentry here , So this is set as 2, It will always wait for other sentinels to decide , The step of re-election never happened . Change to 1 After the error is solved .
simulation 6379 Downtime


After finishing , The re-election process can be carried out normally


Change hands ,6380 Succeeded in usurping the throne


6379 Resurrection can only be 6380 Of slave
Now let 6379 resurrection , You will find that it is no longer master, It became 6380 Of slave.
problem 3-broken pipe
This problem need not be solved , It takes time to update information ~~~
边栏推荐
- Analysis report on the 14th five year development plan and operation mode of China's hazardous waste treatment industry from 2022 to 2028
- PostgreSQL 中文社区黑龙江分会和辽宁分会成立啦!
- Anti aliasing / anti aliasing Technology
- Research and Analysis on the development of China's Melamine Industry from 2022 to 2028 and market prospect forecast report
- The most widely used dynamic routing protocol: OSPF
- csredis-in-asp. Net core theory practice - use examples
- Analysis report on business model innovation path and operation status of China's app store industry from 2022 to 2028
- 数字藏品的发展趋势!
- The carrying capacity of L2 level ADAS increased by more than 60% year-on-year in January, and domestic suppliers "emerged"
- 認識的幾比特清華同學都離職了……
猜你喜欢
C语言:如何给全局变量起一个别名?

Alien Skin Exposure X7调色滤镜插件,RAW后期处理工具

管线中的坐标变换
![Leetcode 890 finding and replacing patterns [map] the leetcode path of heroding](/img/a2/186439a6d50339ca7f299a46633345.png)
Leetcode 890 finding and replacing patterns [map] the leetcode path of heroding

Use js to listen for Keydown event

iShot

CST learning: four element array design of circular patch antenna (II) array formation and combination results

2022 heavyweight: growth law - skillfully use digital marketing to break through enterprise difficulties

Shardingsphere-proxy-5.0.0 deployment table implementation (I)

LeetCode 146. LRU cache
随机推荐
自动获取结构体内部成员变量的位置偏移
Embedded pipeline out of the box
PostgreSQL 中文社区黑龙江分会和辽宁分会成立啦!
度量学习(Metric Learning)【AMSoftmax、Arcface】
lua 循环语句
Plusieurs camarades de classe de Tsinghua sont partis...
csredis-in-asp. Net core theory practice - use examples
PyTorch常用参数初始化方法:【均匀分布、正态(高斯)分布、Xavier、kaiming、正交矩阵、稀疏矩阵、常数、单位矩阵、零填充】
【Web技术】1348- 聊聊水印实现的几种方式
iShot
[Yugong series] wechat applet in February 2022 - Reference
MySQL基础篇视图的总结
启牛帮开通的股票账户是安全可信的吗?
C language: how to give an alias to a global variable?
House raiding 2
细数攻防演练中十大关键防守点
The programmer has worked for 7 years. At the age of 31, he has no choice but to deliver takeout. I really don't want you to go through his journey again
Sword finger offer series - 47 Maximum value of gifts
The annual salary of 500000 is one line, and the annual salary of 1million is another line
The fate of Internet people is that it is difficult to live to 30?