Easy Tutorial
❮ Server Showlog Lists Rpush ❯

Redis Shutdown Command

Redis Server

The Redis Shutdown command performs the following actions:

Syntax

The basic syntax for the Redis Shutdown command is as follows:

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

Available Versions

= 1.0.0

Return Value

Returns an error if the execution fails. No information is returned upon successful execution; the server and client connections are terminated, and the client exits automatically.

Example

redis 127.0.0.1:6379> PING
PONG

redis 127.0.0.1:6379> SHUTDOWN

$

$ redis
Could not connect to Redis at: Connection refused
not connected>

Redis Server

❮ Server Showlog Lists Rpush ❯