服务器异常重启之后,在 启动 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>

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

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

 

 然后启动:redis-server:

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

ok,搞定。

 

相关文章:

  • 2021-09-10
  • 2021-11-11
  • 2021-05-23
  • 2022-12-23
  • 2021-10-13
  • 2021-08-31
  • 2021-12-04
猜你喜欢
  • 2022-12-23
  • 2021-06-07
  • 2022-02-07
  • 2022-12-23
  • 2021-08-24
相关资源
相似解决方案