service redis does not support chkconfig的解决办法

chkconfig redis on
提示错误 service redis does not support chkconfig

把下面两行注释放在/etc/init.d/redis文件靠前的注释中:

#chkconfig: 2345 90 10
#description: Redis is a persistent key-value database

如果属性chkconfig单词写错/2345 90 10等级配置不对,也会弹出标题的错误提示。

posted @ 2021-04-27 10:41  三驾马车  阅读(566)  评论(0编辑  收藏  举报