手动执行命令,生成aof文件:
# 1、进入redis客户端
redis-cli
# 2、执行aof重写命令 bgrewriteaof
执行效果:
[root@nccztsjb-node-15 redis-34992]# bin/redis-cli -p 端口 -a <认证密码> Warning: Using a password with '-a' or '-u' option on the command line interface may not be safe. 127.0.0.1:34992> bgrewriteaof Background append only file rewriting started 127.0.0.1:34992>
执行如下的命令,查看重写是否完成:
info persistence
当看到,aof_last_bgrewrite_status:ok
也就是ok状态时,说明重写完成。
标签:aof,0.1,手动,redis,重写,34992 From: https://www.cnblogs.com/chuanzhang053/p/17122620.html