redis Connection refused 问题
- redis 远程连接被拒绝,redis.conf 默认配置文件中只有 127.0.0.1,添加redis服务器的ip地址即可,ifconfig查看:
在配置文件添加后,即可用该ip连接
redis-trib.rb create —replicas 1 192.168.2.128:7000 192.168.2.128:7001 192.168.2.128:7002 192.128.2.128:7003 192.168.2.128:7004 192.168.2.128:7005
在集群搭建时,用对外的ip搭建,否则远程连接在节点切换也会 Connection refused
还没有评论,来说两句吧...