Redis 使用 init.d 手动启动,但不在启动时 [英] Redis starts manually with init.d but not on startup
本文介绍了Redis 使用 init.d 手动启动,但不在启动时的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如果我运行命令,Redis 会正确启动:
Redis properly starts up if I run the command:
sudo /etc/init.d/redis-server start
我已经添加了我的启动脚本:
I've added my startup script with:
sudo update-rc.d redis-server defaults
但是当我重新启动时,Redis 没有运行.我应该去哪里解决这个问题?
But when I startup from a fresh boot, Redis isn't running. Where should I look to troubleshoot this?
推荐答案
defaults
通常设置为 20 开始.redis 需要联网,现在还为时过早.
The defaults
thing usually sets starting to 20. It's too early as redis requires networking.
因此,请尝试以下操作:
So, try below:
sudo update-rc.d redis-server remove
sudo update-rc.d redis-server start 80 2 3 4 5 .停止 20 0 1 6 .
这篇关于Redis 使用 init.d 手动启动,但不在启动时的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文