当前位置:网站首页>The windows environment redis uses AOF persistence and cannot generate an AOF file. After generation, the content of the AOF file cannot be loaded
The windows environment redis uses AOF persistence and cannot generate an AOF file. After generation, the content of the AOF file cannot be loaded
2022-06-28 05:43:00 【Six six handsome】
List of articles
- There's a lot of content , Please read carefully , It will definitely solve your problem
- Redis System environment recommended by the service
- Redis The official download address of
- Redis To configure AOF Persistence
- Redis Use AOF The right way to open
- Redis stay Windows Environmental use “ Command to start ” and “ Double click the mouse to start ” The difference between
There's a lot of content , Please read carefully , It will definitely solve your problem
Redis System environment recommended by the service
- Recommended Linux Environment as Redis The carrier of service
- For example, using Centos Can avoid some strange Bug, and Redis The official version of Linux The environment is better than Windows High in environment , It will certainly solve many existing problems , More new features have been developed , New characteristics
- But the content of this article is Windows Environment as a carrier , The solution is Windows Problems in the environment
Redis The official download address of
Windows Version download address :https://github.com/tporadowski/redis/releases

Linux Version download address :https://redis.io/

Redis To configure AOF Persistence
- stay redis.windows.conf Open... In file AOF, Here's the picture , take “appendonly” It is amended as follows yes


- After completing the above steps, the configuration is ready Redis Of AOF Persistence
- But the problem comes with ,
double-click redis-server.exeIt doesn't generate AOF file , There is a solution , Is againDouble-click to open redis-cli.exeExecute the following command
// Command one
config set appendonly yes
// Command two
config set save “”
- After executing the above command , It does generate AOF Persistent files for
appendonly.aof, Here's the picture
- But it is generated in this way AOF file , It can't be used normally , When we turn to Redis Content stored in , Kill again Redis process , Retrieve the newly deposited key You'll get null value , So it is not entirely correct to adopt this method
Redis Use AOF The right way to open
We should not
Double click the mouse directly redis-server.exefile open Redis servicebelong
Command promptUse commandredis-server.exe redis.windows.confstart-up Redis
The above method will successfully generate AOF file , And use Redis Of AOF Data persistence function
Redis stay Windows Environmental use “ Command to start ” and “ Double click the mouse to start ” The difference between
Double click to start ,Redis Only read and restore RDB File restore data

Using the command line , If the AOF Will successfully read AOF Persistent files

append only That is the AOF Data persistence file
边栏推荐
- 函数栈帧的创建和销毁
- Linked list in JS (including leetcode examples) < continuous update ~>
- 1404. number of steps to reduce binary representation to 1
- ? How to write the position to output true
- JS中的链表(含leetcode例题)<持续更新~>
- Qtcanpool q05: no border
- 一看就会 MotionLayout使用的几种方式
- Office is being updated and the application cannot start normally
- 分享|智慧环保-生态文明信息化解决方案(附PDF)
- Why don't big manufacturers use undefined
猜你喜欢

Jenkins持续集成1

Docker installs mysql5.7 and starts binlog

qtcanpool 知 07:Ribbon

Wedding studio portal applet based on wechat applet

分享|智慧环保-生态文明信息化解决方案(附PDF)

电子邮件营销的优势在哪里?为什么shopline独立站卖家如此重视?
![[untitled] drv8825 stepping motor drive board schematic diagram](/img/30/02f695592f3b624ebbb2b7a9f68052.png)
[untitled] drv8825 stepping motor drive board schematic diagram

How to design an awesome high concurrency architecture from scratch (recommended Collection)

Detailed usage configuration of the shutter textbutton, overview of the shutter buttonstyle style and Practice

解决ValueError: Iterable over raw text documents expected, string object received.
随机推荐
Leecode question brushing-ii
Application of Beidou No.3 short message terminal in dam safety monitoring scheme
Zzuli:1071 decomposing prime factor
【无标题】drv8825步进电机驱动板子原理图
What is the difference between AC and DC?
Important basis for ERP software company selection
Why don't big manufacturers use undefined
容量调度绝对值配置队列使用与避坑
Error: the following arguments are required:
TypeScript接口
8VC Venture Cup 2017 - Elimination Round D. PolandBall and Polygon
安装 Ffmpefg
Linked list in JS (including leetcode examples) < continuous update ~>
Cryptography notes
Concurrent wait/notify description
V4L2 驱动层分析
Typescript interface
博客登录框
Flink 窗口机制 (两次等待, 最后兜底)
Online yaml to JSON tool