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
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
浙公网安备 33010602011771号