digdeep

凡是过去,皆是序幕。Read the fucking manual and source code.

  博客园 :: 首页 :: 博问 :: 闪存 :: 新随笔 :: 联系 :: 订阅 订阅 :: 管理 ::

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

 

posted on 2020-04-06 16:44  digdeep  阅读(2331)  评论(0编辑  收藏  举报
不懂数据库和Web安全的架构师不是一个好的程序员。