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

在使用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);


largeQ
浏览 1874回答 2
2回答

慕移动010557

大哥,这个问题解决了吗???
打开App,查看更多内容
随时随地看视频慕课网APP