为了账号安全,请及时绑定邮箱和手机立即绑定

StackExchange.Redis 链接 Sentine模式报问题。

StackExchange.Redis 链接 Sentine模式报问题。

C#
largeQ 2018-08-17 10:09:43
在使用stackexchange redis客户端库通过sentinel连接受密码保护的Redis服务器爆出这样的问题:This operation has been disabled in the command-map and cannot be used: AUTH代码是这样写:var options = new ConfigurationOptions(){CommandMap = CommandMap.Sentinel,EndPoints = { { "10.88.5.146", 26379 },{ "10.88.5.147", 26379 }},AllowAdmin = true,TieBreaker = "",Password = "12345641",ServiceName = "mymaster",SyncTimeout = 5000,AbortOnConnectFail = true,DefaultVersion = new Version(3, 0),Ssl = false};var connection = ConnectionMultiplexer.Connect(options);
查看完整描述

2 回答

?
慕移动010557

TA贡献1条经验 获得超0个赞

大哥,这个问题解决了吗???

查看完整回答
反对 回复 2020-01-16
  • 2 回答
  • 0 关注
  • 1867 浏览

添加回答

举报

0/150
提交
取消
意见反馈 帮助中心 APP下载
官方微信