redis SHUTDOWN command
Translation results:
English [ˈʃʌtdaʊn] US [ˈʃʌtˌdaʊn]
n.Shut down; close down, close down; suspend work, stop business; stop broadcasting
Plural: shutdowns
redis SHUTDOWN commandsyntax
Function:SHUTDOWN command performs the following operations: Stop all clients; if there is at least one save point waiting, execute the SAVE command; if the AOF option is turned on, update the AOF file; close the redis server (server ).
Syntax: SHUTDOWN
Description: If persistence is turned on, the SHUTDOWN command will ensure that the server is shut down normally without losing any data.
Available versions: >= 1.0.0
Time complexity: Unclear
Return: Return an error when execution fails. No information is returned when the execution is successful, the connection between the server and the client is disconnected, and the client automatically exits.
redis SHUTDOWN commandexample
redis> PING PONG redis> SHUTDOWN $ $ redis Could not connect to Redis at: Connection refused not connected>