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

redis无法启动,aop文件损坏

运行:   /usr/local/bin/redis-check-aof --fix appendonly.aof

不知道存放路径的可以查找find / -name redis-check-aof

参考来源:https://blog.csdn.net/wang0112233/article/details/86438789

原文地址:https://www.cnblogs.com/weidaijie/p/12122875.html

时间: 2024-10-16 18:59:58

redis报错 Bad file format reading the append only file: make a backup of your AOF file, then use ./redis-check的相关文章

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

服务器异常重启之后,在 启动 redis 时,redis-server不断的从日志文件加载数据到内存,到了6G左右时,redis-server 又挂了,再次启动重复这个过程.查看日志,发现报错: 处理方法:redis-check-aof --fix appendonly_6379.aof 然后启动:redis-server: redis-server /etc/redis-6379.conf & ok,搞定. 原文地址:https://www.cnblogs.com/digdeep/p/1264

mac brew install redis 报错

mac brew install redis 报错 /usr/local/opt/php55/bin/phpize /usr/local/opt/php55/bin/phpize: line 61: /usr/local/Library/ENV/4.3/sed: No such file or directory /usr/local/opt/php55/bin/phpize: line 62: /usr/local/Library/ENV/4.3/sed: No such file or di

iptables报错:Couldn't load target `accept':/lib64/iptables/libipt_accept.so: cannot open shared object file: No such file or directory

语句:iptables -A INPUT -s 134.192.204.235 -p TCP --dport 11211 -j accept 报错:Couldn't load target `accept':/lib64/iptables/libipt_accept.so: cannot open shared object file: No such file or directory 原因:规则语句写错accept应大写ACCEPT 参考:http://www.cnblogs.com/iii

mysql数据库中不能插入0000-00-00 00:00:00日期数据(报错Invalid datetime format: 1292 Incorrect datetime value: '0000-00-00 00:00:00')

报错信息 SQLSTATE[22007]: Invalid datetime format: 1292 Incorrect datetime value: '0000-00-00 00:00:00' for column 'settlementTime' at row 1 我最后把mysql设置成可空,接受null型 参考:https://yq.aliyun.com/articles/17124 mysql数据库中不能插入0000-00-00 00:00:00日期数据(报错Invalid dat

Redis报错“ OOM command not allowed when used memory > 'maxmemory' ”

生产环境上遇到这个问题,控制台不停打印 “OOM command not allowed when used memory > 'maxmemory' ”; 起初不知道是什么,经过一番搜索: 1.登陆redis客户端:./redis-cli -h IP -p port -a passwd 2.执行命令:redis>info memory 若配置文件中,最大内存的策略设置为 maxmemory-policy volatile-lru 此配置只是清楚设置过期时间的key值,然而本应用并没有设置过期

连接redis报错MISCONF Redis is configured to save RDB s

连接redis报错MISCONF Redis is configured to save RDB snapshots date: Mon Nov 11 16:11:24 CST 2019 笔者:张首富 程序报错如下 redis.exceptions.ResponseError: MISCONF Redis is configured to save RDB snapshots, but it is currently not able to persist on disk. Commands t

python操作redis报错:redis.exceptions.DataError: ZADD allows either 'nx' or 'xx', not both解决方案

一.问题描述 sorted set操作执行:print(connect.zadd('grade', 'bob', 98, 'mike' ,100))时报错redis.exceptions.DataError: ZADD allows either 'nx' or 'xx', not both 二.出现该问题原因 上面的connect.zadd('key','value1','score1','value2','score2')写法是redis-py 3.0之前的版本 在redis-py 3.0版

编译 redis 报错 error: jemalloc/jemalloc.h: No such file or directory

gcc编译redis时报错: zmalloc.h:50:31: error: jemalloc/jemalloc.h: No such file or directory zmalloc.h:55:2: error: #error "Newer version of jemalloc required" 原因是jemalloc重载了Linux下的ANSI C的malloc和free函数.解决办法:make时添加参数. make MALLOC=libc

启动redis报错:...‘vm-enabled no‘...

启动 redis 发现报错: [[email protected] ~]# service redis start Starting redis-server: *** FATAL CONFIG FILE ERROR *** Reading the configuration file, at line 375 >>> 'vm-enabled no' Bad directive or wrong number of arguments [FAILED] ===解决方法=== redis