Ubuntu系统Redis配置服务启动常见错误解决办法

问题一

Warning: redis.service changed on disk.Run ‘systemctl daemon-reload’ to reload units.

解决办法
执行“systemctl daemon-reload”问题解决。

zhou@fangshuoit:/etc/init.d$ systemctl daemon-reload
zhou@fangshuoit:/etc/init.d$ service redis start
zhou@fangshuoit:/etc/init.d$ service redis stop

问题二

insserv: warning: script ‘redis’ missing LSB tags and overrides

解决办法
在/etc/init.d/redis文件中添加如下:

### BEGIN INIT INFO
# Provides:          redis6379
# Required-Start:    $local_fs $network
# Required-Stop:     $local_fs
# Default-Start:     2 3 4 5
# Default-Stop:      0 1 6
# Short-Description: redis6379
# Description:       penavico redis 6379
### END INIT INFO

你可能感兴趣的:(ubuntu)