Could not connect to Redis at (ip):6379: Connection refused
连接失败
1.检查redis-server 有没有开启服务
2.修改配置文件(/usr/local/redis/etc/redis.conf)
bind 指定ip 0.0.0.0(所有ip)
3.关闭防火墙 chkconfig iptables off 重启永久生效
备注: slaveof ip port 如果不能同步数据,也是检查以上情况
Could not connect to Redis at (ip):6379: Connection refused
连接失败
1.检查redis-server 有没有开启服务
2.修改配置文件(/usr/local/redis/etc/redis.conf)
bind 指定ip 0.0.0.0(所有ip)
3.关闭防火墙 chkconfig iptables off 重启永久生效
备注: slaveof ip port 如果不能同步数据,也是检查以上情况