redis 报错:MISCONF Errors writing to the AOF file: Bad file descriptor
错误原因是说磁盘空间即将不足。但实际情况我的磁盘空间非常充足。
该问题的原因有可能因为操作系统层面的的错误导致。执行以下步骤可解决问题。且数据不丢失。
修复办法:
- 备份 appendonly.aof 为 appendonly.aof.bak
- 删除 appendonly.aof
- 复制 appendonly.aof.bak 到 appendonly.aof
该操作无效。
redis-check-aof --fix appendonly.aof