In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-09-21 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Database >
Share
Shulou(Shulou.com)06/01 Report--
This article will explain in detail the methods of restoring redis downtime data. The editor thinks it is very practical, so I share it with you as a reference. I hope you can get something after reading this article.
Redis data is kept in memory. If the machine goes down, the data in memory does not exist.
You need to persist and save the data in memory on disk, and you can restore the data to memory the next time you boot.
AOF append only file (all operation commands to redis are recorded in the aof file), recover the data, and execute it again.
Features: saved per second, the data is relatively complete, consuming performance.
Disadvantages: the data generated between 0-1 second is lost and cannot be saved, but you can modify the save mode to generate an AOF every time you change redis
AOF enable settings:
Modify the redis.conf file as shown below:
Set appendonly to yes
Redis can open AOF and use AOF to recover data. The data exists in / usr/local/redis/bin/appendonly.aof file.
This is the end of the method of recovering redis downtime data. I hope the above content can be helpful to you and learn more knowledge. If you think the article is good, you can share it for more people to see.
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
The market share of Chrome browser on the desktop has exceeded 70%, and users are complaining about
The world's first 2nm mobile chip: Samsung Exynos 2600 is ready for mass production.According to a r
A US federal judge has ruled that Google can keep its Chrome browser, but it will be prohibited from
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
About us Contact us Product review car news thenatureplanet
More Form oMedia: AutoTimes. Bestcoffee. SL News. Jarebook. Coffee Hunters. Sundaily. Modezone. NNB. Coffee. Game News. FrontStreet. GGAMEN
© 2024 shulou.com SLNews company. All rights reserved.