Redis Admin and redis-cli Cheat Sheet/Gracefully stop the server

Stop Redis and optionally save current state.

Section: Server administration

Gracefully stop the server

bash
bash
SHUTDOWN SAVE

Learn the surrounding workflow

Compare similar commands or jump into common fixes when this command is part of a bigger troubleshooting path.

Related commands

Same sheet · prioritizing Server administration
Delete all keys in current DB
Clear the selected database asynchronously.
OpenIn sheetbashsame section
Delete all keys in all DBs
Clear every logical database asynchronously.
OpenIn sheetbashsame section
Read configuration values
Read current server configuration values.
OpenIn sheetbashsame section
Change a configuration value
Change a config value at runtime.
OpenIn sheetbashsame section
Rewrite config file
Persist runtime config changes back to redis.conf where possible.
OpenIn sheetbashsame section
Terminate a client
Disconnect a matching client connection.
OpenIn sheetbashsame section