默认redis.conf配置文件在/etc/redis 打开配置文件 设置appendonly.aof 路径 service redis restart 重启即可看见设置目录下的appendonly.aof 文件