在使用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);
添加回答
举报
0/150
提交
取消