问题描述:
容器redis一直处于restart中,查看日志报“bad file format reading the
append only file:make a backup of your AOF file ,then use ./redis-check-
aof --fix <filename>”
解:
1、用find命令找到appendonly.aof和redis-check-aof文件
2、cp appendonly.aof appendonly.aof.bak
redis-check-aof --fix appendonly.aof
docker restart redis