Bad file format reading the append only file: make a backup of your AOF file, then use ./redis-check

Posted digdeep

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Bad file format reading the append only file: make a backup of your AOF file, then use ./redis-check相关的知识,希望对你有一定的参考价值。

服务器异常重启之后,在 启动 redis 时,redis-server不断的从日志文件加载数据到内存,到了6G左右时,redis-server 又挂了,再次启动重复这个过程。查看日志,发现报错:

Bad file format reading the append only file: make a backup of your AOF file, then use ./redis-check-aof --fix <filename>

 

 处理方法:redis-check-aof --fix appendonly_6379.aof

 

 然后启动:redis-server:

redis-server /etc/redis-6379.conf &

ok,搞定。

 

以上是关于Bad file format reading the append only file: make a backup of your AOF file, then use ./redis-check的主要内容,如果未能解决你的问题,请参考以下文章

eclipse中出现invalid LOC header (bad signature) cannot be read or is not a valid ZIP file

arm6410,linux,c语言,read函数返回-1,错误:bad address

error: exportArchive: The data couldn’t be read because it isn’t in the correct format.

nginx 502 bad gateway

shell脚本报错:-bash: xxx: /bin/bash^M: bad interpreter: No such file or directory

adb传输文件报错couldn‘t create file:Read-only file system