Redis – Server Shutdown Command

  • Post author:
  • Post category:Redis
  • Post comments:0 Comments

Redis SHUTDOWN command stops all clients, performs a save, flushes all append only files (if AOF is enabled) and quits the server.

Return Value

Simple string reply on error. On success nothing is returned, since the server quits and the connection is closed.

Syntax

Following is the basic syntax of Redis SHUTDOWN command.

redis 127.0.0.1:6379> SHUTDOWN [NOSAVE] [SAVE]

Example

redis 127.0.0.1:6379> SHUTDOWN 

Leave a Reply