StackExchange.Redis 使用密码连不上
RedisExchangeHosts value 是 ip:port,password=123123 报错
It was not possible to connect to the redis server(s). ProtocolFailure (None, last-recv: 462)
Interactive, Flushed/ComputeResult, last: ECHO, origin: SetResult, outstanding: 0, last-read: 0s ago, last-write: 0s ago, keep-alive: 60s, state: ConnectedEstablishing, mgr: 9 of 10 available, last-heartbeat: never, global: 7s ago, v: 2.1.30.38891”
请问 有人遇到过吗?
把防火墙关了试试
已经关了 我使用
可以连上
@马玉溁: 那就是链接写法错了
你对比一下这个:
<add name="Connection_Redis" connectionString="127.0.0.1:6379,127.0.0.1:6380,127.0.0.1:6381,127.0.0.1:6382,password=123456,abortConnect=false" />
_connectionString = ConfigurationManager.ConnectionStrings["Connection_Redis"].ConnectionString; _connMultiplexer = ConnectionMultiplexer.Connect(_connectionString);
@悟行:
我是这么写的。
加上abortconnet也不行