首页 新闻 赞助 找找看

.NET 使用RedisSentinelManager 连接Redis Sentinel 时失败。

0
[待解决问题]

使用CSRedis  客户端连接 Redis Sentinel(哨兵)的时候 无法连接。

using (var sentinel = new RedisSentinelManager("192.168.2.46:26379", "192.168.2.46:26380"))
            {
                sentinel.Connect("mymaster"); // open connection
                var test2 = sentinel.Call(x => x.Time()); // use the Call() lambda to access the current master connection
            }

在 执行 

sentinel.Connect("mymaster");  的时候连接失败  提示 Could not connect to sentinel or master。
Redis 的主从 和  Sentinel 已经配置成功并测试正常。
yzy的主页 yzy | 菜鸟二级 | 园豆:317
提问于:2017-03-02 18:05
< >
分享
清除回答草稿
   您需要登录以后才能回答,未注册用户请先注册