连接远程的redis 集群报Could not get a resource from the pool异常

在阿里云Ubuntu新搭建的redis集群,始终无法连接,报Could not get a resource from the pool异常

查找资料发现是redist的一些限制,Protected mode is a layer of security protection, in order to avoid that

Redis instances left open on the internet are accessed and exploited. 就是说出于安全考虑,redis的实例不能在网络上被访问,所以修改protected-mode就好了

所以将redis.conf中的protected-mode yes改为protected-mode no

重启redis实例,以为问题就解决了?发现还是报Could not get a resource from the pool异常

这个是什么情况,要逆天嘛?

查看redis node信息看一下,终于发现了问题


怎么会有172的IP,到这里终于找到问题根源了,修改node.conf配置,重启redis,问题终于解决。

你可能感兴趣的:(连接远程的redis 集群报Could not get a resource from the pool异常)