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”
最佳解决方案
看到你使用的是aliyun的redis, aliyun的redis默认没有sentinel ,只有集群和主从两种,不过可以打开兼容sentinel的模式 :https://help.aliyun.com/document_detail/1789
11.html?spm=a2c4g.11186623.0.0.615e5373R6nGQQ
你可以先确认是否开启了兼容sentinel模式,或不使用sentinel模式连接redis