我在CentOS 6.2上运行了两个独立的REDIS实例,如以下一篇文章所述:
我在/etc/init.d目录下有适当的脚本:
/etc/init.d/redis_6379 /etc/init.d/redis_6380
我还为REDIS实例设置了运行级别:
redis-sentinel 0:off 1:off 2:off 3:off 4:off 5:off 6:off
redis_6379 0:off 1:off 2:on 3:on 4:on 5:on 6:off
redis_6380 0:off 1:off 2:on 3:on 4:on 5:on 6:off
However, when the system reboots, none of the two REDIS instances are starting. I have to enter the system and manually run the startup scripts:
[root]# /etc/init.d/redis_6379 start
[root]# /etc/init.d/redis_6380 start
I checked the log files of REDIS and didn't find any failure.