REDIS do not delete rdb files how to recover data from memory

Source: Internet
Author: User
Tags redis

The Redis data is in memory, If Redis restarts or breaks for a certain time, Redis will persist the memory in an. rdb file on the hard disk, and accidentally deleted the. rdb file when you first started using Redis, but you just need to save normally or restart the Redis,rdb file for automatic generation.

However, as the online business increases, REDIS data will become larger, in this way error, can not save in-memory data to the Rdb file, you need to do the following steps to restore the Rdb file:

  1. Go to Redis port, info view configuration information

  2. Enter Redis port to execute config set dir/data/redis/

  3. Execute Save


This article is from the "Web" blog, please be sure to keep this source http://gxjluck.blog.51cto.com/1211751/1765939

REDIS do not delete rdb files how to recover data from memory

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.