Home > Article > Backend Development > Will redis automatically save data to the hard disk after shutdown?
Since you want to upgrade the redis version, you need to stop the original redis first.
So, will the data be automatically saved to the hard disk after redis shutdown?
Since you want to upgrade the redis version, you need to stop the original redis first.
So, will the data be automatically saved to the hard disk after redis shutdown?
No if it is an accidental exit. Executing the shutdown command will first save the data locally.
shutdown adopts shutdown save mode by default
You can also manually specify shutdown nosave not to save.