springboot 2.0.0+连接redis失败
1.首先在redis.conf中注释掉bind 127.0.0.1这一行,其意思是只允许本地访问连接,其他Ip都将被拒绝.
vim /etc/redis.conf
2.如果第一步操作过后,依然拒绝连接,可能为redis部署机器的防火墙没有关闭或者网络不通,进行如下操作:
关闭防火墙:
(centos7)systemctl stop firewalld.service
(centos6)...
原创
2019-01-13 23:24:34 ·
2004 阅读 ·
0 评论