Redis异常 Invalid argument during startup: unknown conf file parameter

问题提出

设置 redis 过期事件监听时,需将 notify-keyspace-events的值设置为Ex,故去掉了 notify-keyspace-events Ex'之前的注释符。然而,启动redis客户端的时候提示

Invalid argument during startup: unknown conf file parameter : notify-keyspace-events

问题分析

从上图可以看出notify-keyspace-events Ex'前多了空格,导致redis无法识别。

问题解决

去掉notify-keyspace-events Ex'之前多余的空格后,服务启动成功。


  读后有收获,小礼物走一走,请作者喝咖啡。

赞赏支持

原文地址:https://www.cnblogs.com/east7/p/14546632.html