Scenes
Redis persistence mechanism-RDB method and AOF method:
Redis persistence mechanism-RDB method and AOF method_rdb and ao-CSDN blog
The Redis persistence mechanism causes the service to take too long to restore data after it is started and cannot be used. How to shut down:
The above is an introduction to redis persistent rdb.
If you need to obtain all the data in online redis and use it locally for debugging, you can download the rdb file of online redis locally and run it locally.
Using the same configuration file and redis version, you can obtain the same data online after startup.
Note:
Blog:
Domineering hooligan temperament_C#, architecture road, SpringBoot-CSDN blog
accomplish
However, when reproducing the data locally according to the above process, it prompts when starting redis-server.
Can't handle RDB format version 9
Fatal error loading the DB:Invalid argument.Exiting
This is because the online redis version is 5.0 and the local redis is 3.2, so you can download the same version of redis locally.
Download redis5.0 address on windows
Releases · tporadowski/redis · GitHub
Download the zip and unzip it, then copy the rdb file in