redis-ruby集群连接异常错误
2017-08-26 21:42
232 查看
连接异常信息:
DENIED Redis is running in protected mode because protected mode is enabled, no bind address was specified, no authentication password is requested to clients. In this mode connections are only accepted from the loopback interface. If you want to connect
from external computers to Redis you may adopt one of the following solutions: 1) Just disable protected mode sending the command 'CONFIG SET protected-mode no' from the loopback interface by connecting to Redis from the same host the server is running, however
MAKE SURE Redis is not publicly accessible from internet if you do so. Use CONFIG REWRITE to make this change permanent. 2) Alternatively you can just disable the protected mode by editing the Redis configuration file, and setting the protected mode option
to 'no', and then restarting the server. 3) If you started the server manually just for testing, restart it with the '--protected-mode no' option. 4) Setup a bind address or an authentication password. NOTE: You only need to do one of the above things in order
for the server to start accepting connections from the outside.
解决方案:
在/usr/local/redis/bin/redis.conf中将protected-mode yes 改为no
DENIED Redis is running in protected mode because protected mode is enabled, no bind address was specified, no authentication password is requested to clients. In this mode connections are only accepted from the loopback interface. If you want to connect
from external computers to Redis you may adopt one of the following solutions: 1) Just disable protected mode sending the command 'CONFIG SET protected-mode no' from the loopback interface by connecting to Redis from the same host the server is running, however
MAKE SURE Redis is not publicly accessible from internet if you do so. Use CONFIG REWRITE to make this change permanent. 2) Alternatively you can just disable the protected mode by editing the Redis configuration file, and setting the protected mode option
to 'no', and then restarting the server. 3) If you started the server manually just for testing, restart it with the '--protected-mode no' option. 4) Setup a bind address or an authentication password. NOTE: You only need to do one of the above things in order
for the server to start accepting connections from the outside.
解决方案:
在/usr/local/redis/bin/redis.conf中将protected-mode yes 改为no
相关文章推荐
- Java通过Jedis连接Redis异常,错误记录
- zookeeper集群配置错误:连接异常
- redis集群连接异常
- Redis客户端连接异常:Could not get resource from the pool 解决办法
- YII2实现redis单机和集群分别连接
- Redis集群~StackExchange.Redis(10月6号版1.1.608.0)连接Twemproxy支持Auth指令了
- Redis客户端连接异常:Could not get resource from the pool 解决办法
- Redis 集群搭建与连接
- Java 连接操作 Redis 出现错误
- redis集群--4.jedis连接集群版
- 连接redis报此错误:ERR Client sent AUTH, but no password is set
- 使用Jedis连接单机版redis和集群般redis
- J2CA0056I: 连接管理器接收到来自资源 jdbc/gywork 的资源适配器的致命连接错误。接收到的异常为 com.ibm.websphere.ce.cm.StaleConnectionException: JZ006: 捕获到 IO 例外:com
- ruby redis的集群管理器
- 在Linux上(我的服务器是Ubuntu) 用redis-trib.rb搭建redis集群,并在客户端使用spring-data-redis连接(亲测)
- 解决redis连接错误:MISCONF Redis is configured to save RDB snapshots, but it is currently not able to persi
- 笔记:解决redis连接错误:MISCONF Redis is configured to save RDB snapshots, but it is currently not able to...
- Linux 下Redis集群安装部署及使用详解(在线和离线两种安装+相关错误解决方案)
- redis客户端jedis基于spring搭建单节点或者集群线程池连接
- 使用 ruby 搭建带有密码的redis集群