redis指定配置文件启动失败
redis指定配置文件启动失败 redis-server redis.conf失败。
但是直接执行redis-server是可以成功的
之所以没有启动成功,且没有报错的原因是 在自己的redis.conf里面指定了
daemonize yes
也就是后台启动,并且没有指定log文件
解决方法
可以先把daemonize yes 改成 daemonize no
再去启动redis-server redis.conf
这时候可以看到报错如下:
Bad file format reading the append only file: make a backup of your AOF file, then use ./redis-check-aof --fix
redis 可能因为机器重启导致启动出现该错误
执行
cp appendonly.aof appendonly.aof.bak
redis-check-aof --fix appendonly.aof
再次重启redis即可
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)