当前位置:网站首页>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
边栏推荐
- 2022年全国职业院校技能大赛“网络安全”竞赛试题官方答案
- 原动力×云原生正发声 降本增效大讲堂
- Wireless sensor network learning notes (I)
- 安装 Ffmpefg
- Deeplearning ai-week1-quiz
- 数据中台:数据治理的七把利剑
- 6. 毕业设计温湿度监控系统(ESP8266 + DHT11 +OLED 实时上传温湿度数据给公网服务器并在OLED显示屏上显示实时温湿度)
- Wedding studio portal applet based on wechat applet
- If a programmer goes to prison, will he be assigned to write code?
- 2022 new version NFT source code source code of China meta universe digital collection art trading platform
猜你喜欢
随机推荐
2022年全国职业院校技能大赛“网络安全”竞赛试题官方答案
Deeplearning ai-week1-quiz
[Verilog quick start of Niuke online question brushing series] ~ one out of four multiplexer
分享|智慧环保-生态文明信息化解决方案(附PDF)
Gee learning notes 3- export table data
How does the power outlet transmit electricity? Simple problems that have plagued my little friend for so many years
安装 Ffmpefg
猿粉猿动力-开发者活动袭!
Prove that there are infinite primes / primes
如何在您的Shopify商店中添加实时聊天功能?
Data middle office: construction ideas and implementation experience of data governance
numpy.reshape, numpy.transpose的理解
? How to write the position to output true
Liuhaiping's mobile phone passes [[uiapplication sharedapplication] delegate] window. safeAreaInsets. The height of the bottom security zone is 0
Error: the following arguments are required:
关系数据库与文档数据库对比
If a programmer goes to prison, will he be assigned to write code?
Quartus replication IP core
To batch add background pictures and color changing effects to videos
Oracle基础知识总结
![[JVM] - memory partition in JVM](/img/d8/29a5dc0ff61e35d73f48effb858770.png)








