tackExchange.Redis.RedisConnectionException:“It was not possible to connect to the redis server(s). ProtocolFailure (None, last-recv: 198) on *, Flushed/ComputeResult, last: ECHO, origin: SetResult, outstanding: 0, last-read: 0s ago, last-

¥50.00

Asp.Net程序链接Redis服务报错:

StackExchange.Redis.RedisConnectionException:“It was not possible to connect to the redis server(s). ProtocolFailure (None, last-recv: 198) on r-uf6aeqqe5mmamaxk5bpd.redis.rds.aliyuncs.com:6379/Interactive, Flushed/ComputeResult, last: ECHO, origin: SetResult, outstanding: 0, last-read: 0s ago, last-write: 0s ago, keep-alive: 60s, state: ConnectedEstablishing, mgr: 8 of 10 available, last-heartbeat: never, global: 1s ago, v: 2.2.4.27433”


StackExchange.Redis.RedisConnectionException

小灸舞 T0 发布于11个月前

最佳解决方案

原因分析

我也遇到了这样的连接错误,网上找了一圈也没有找到解决方案。应该是stackExchange.Redis不兼容某种架构的sentinel模式redis.

看到你使用的是aliyun的redis, aliyun的redis默认没有sentinel ,只有集群和主从两种,不过可以打开兼容sentinel的模式 :https://help.aliyun.com/document_detail/1789

11.html?spm=a2c4g.11186623.0.0.615e5373R6nGQQ

你可以先确认是否开启了兼容sentinel模式,或不使用sentinel模式连接redis


曽大仁 T0 被采纳率100%
2021-12-07 15:15
打赏 0 0
页面统计
1121 访问
0 帮助
0.00 打赏

hierror 2019 © hierror.com 京ICP备13026190号-1

通知消息
  • 暂无任何消息