应用连接Redis报错处理

问题描述:

应用连接redis报错Connection failure occurred. Restarting subscription task after 5000 ms

解决方式:

方式一:检查并修改redis.conf中bind 127.0.0.1bind *
方式二:直接在redis.conf末尾新加一行bind *

注意配置文件读取时下方配置会覆盖上方配置

使用ps -ef|grep redis ,检查结果中的./redis-server *:6379,若绑定了127.0.0.1后,结果为./redis-server 127.0.0.1:6379

原文地址:https://www.cnblogs.com/jiujianxian/p/14438467.html