Home  >  Article  >  Backend Development  >  Will redis automatically save data to the hard disk after shutdown?

Will redis automatically save data to the hard disk after shutdown?

WBOY
WBOYOriginal
2016-09-02 08:57:071961browse

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?

Reply content:

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.

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn