In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-03-29 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Database >
Share
Shulou(Shulou.com)06/01 Report--
1.rdb mode
(1) introduction: redis persists data to disk through snapshots by default.
(2) conditions for persistence:
There is one write in 900 seconds, or 10 writes in 300 seconds, or 10000 writes in 60 seconds.
(3) persistent storage directory
Dbfimename: represents the name of the file persisted to disk.
Dir: indicates the location where persistent files are stored.
(4) the problem of rdb:
Once redis shuts down illegally, the last persisted data will be lost.
2.aof mode
(1) introduction: redis does not use persistence in this way by default. The persistence of aof mode is to operate the redis database once, then the record of the operation is stored in the aof persistence file.
(2) configure aof persistence scheme
Step 1: change the appendonly in redis.conf to yes, which enables the persistence solution in aof mode.
Step 2: set the name of the Aof file store
(3) benefit: using aof method will not lose data. If redis is restarted, the data will be loaded from the aof file.
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.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.