StackExchange.Redis.RedisConnectionException:“It was not possible to connect to the redis server(s);

1.c#连接redis时报错:StackExchange.Redis.RedisConnectionException:“It was not possible to connect to the redis server(s); to create a disconnected multiplexer, disable AbortOnConnectFail. Timeout”
2.这是因为使用StackExchange.Redis时默认abortconnect=true,即当redis连接报错时StackExchange会自动停止,即便后来redis服务端修好能够接通时,也不会自动连接。
3.解决办法,在C#的App.config文件中的redis连接配置中的redis连接地址后加上abortConnect=false。
原文链接:https://blog.csdn.net/qq_30072161/article/details/117027782
posted @   zxh6859  阅读(877)  评论(0编辑  收藏  举报
相关博文:
阅读排行:
· 10年+ .NET Coder 心语 ── 封装的思维:从隐藏、稳定开始理解其本质意义
· 【设计模式】告别冗长if-else语句:使用策略模式优化代码结构
· 提示词工程——AI应用必不可少的技术
· 字符编码:从基础到乱码解决
· 地球OL攻略 —— 某应届生求职总结
点击右上角即可分享
微信分享提示