用docker安装过REDIS后,用RDM连接会无限重试然后崩溃。
需要修改redis.conf内容(修改前关闭所以Redis相关程序):
- 老版本Redis把“bind 127.0.0.1 ” 改为 “# bind 127.0.0.1 ”
- 新版本Redis把bind 127.0.0.1 ” 改为 “bind 0.0.0.0 ”
- 把“protected-mode yes” 改为 “protected-mode no”
- 添加“daemonize yes”
-
配置内容 # bind 127.0.0.1 bind 0.0.0.0 protected-mode no daemonize yes