远程启动Redis,报错不能配置键空间通知(keyspace notifications)
2017-06-07 08:40
1386 查看
启动服务器上面的redis,报错:org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'enableRedisKeyspaceNotificationsInitializer' defined in class path resource [org/springframework/session/data/redis/config/annotation/web/http/RedisHttpSessionConfiguration.class]:
Invocation of init method failed; nested exception is java.lang.IllegalStateException:
Unable to configure Redis to keyspace notifications. See http://docs.spring.io/spring-session/docs/current/reference/html5/#api-redisoperationssessionrepository-sessiondestroyedevent
在网上找了好久的原因
1.redis.conf文件中修改 bind为0.0.0.0,
2.
3.sentinel.conf中加入 protected-mode no
然而都不管用 ,依然报之前的错
最后在启动redis的时候用命令 redis-server ../redis.conf 即在原来的命令后面加上配置文件,然后可以了!!
pro
tected-mode no
Invocation of init method failed; nested exception is java.lang.IllegalStateException:
Unable to configure Redis to keyspace notifications. See http://docs.spring.io/spring-session/docs/current/reference/html5/#api-redisoperationssessionrepository-sessiondestroyedevent
在网上找了好久的原因
1.redis.conf文件中修改 bind为0.0.0.0,
2.
1、修改reids配置文件(redis.conf) redis默认不会开启keyspace notifications,因为开启后会对cpu有消耗 备注: E:keyevent事件,事件以__keyevent@<db>__为前缀进行发布; x:过期事件,当某个键过期并删除时会产生该事件; 配置如下: notify-keyspace-events "Ex"
3.sentinel.conf中加入 protected-mode no
然而都不管用 ,依然报之前的错
最后在启动redis的时候用命令 redis-server ../redis.conf 即在原来的命令后面加上配置文件,然后可以了!!
pro
tected-mode no
相关文章推荐
- Redis键空间通知(keyspace notifications)
- 10Redis键空间通知(keyspace notifications)
- 远程拷贝、查看端口、vim常见快捷键、查找替换命令、grep命令、查看存储空间的命令、chkconfig命令、系统自动启动级别、主机名配置、IP地址配置、域名映射、防火墙设置
- 远程拷贝、查看端口、vim常见快捷键、查找替换命令、grep命令、查看存储空间的命令、chkconfig命令、系统自动启动级别、主机名配置、IP地址配置、域名映射、防火墙设置
- Redis实践操作之—— keyspace notification(键空间通知)
- Linux 配置redis,使用redisdesktopmanage不能远程连接(remote connect)
- redis配置错误导致服务器不能启动
- redis的安装、启动、主从配置,以及.Net下StackExchange.Redis的使用
- Ubuntu上snmp安装、配置、启动及远程测试完整过程
- centos 6.5下安装、配置并启动SSH远程访问
- Struts2配置redis共享session启动报错,求大神指点.配置和报错信息如下:
- Redis源码解析:09redis数据库实现(键值对操作、键超时功能、键空间通知)
- Ubuntu 11.10 通过配置vnc使windows可以远程桌面,自动启动
- Redis的配置与启动
- redis 启动时指定配置文件
- redis的配置(安装、启动、本机与虚拟机的redis的连接)
- ibatis的sqlmap配置文件错误导致不能启动
- grub2正确配置――硬盘安装ubuntu 9.10之后不能启动xp解决方法
- 解决tomcat启动jmx远程管理后不能正常关闭问题
- redis 报错 Redis protected-mode 配置文件没有真正启动