- Redis Basics
- Redis - Home
- Redis - Overview
- Redis - Environment
- Redis - Configuration
- Redis - Data types
- Redis Commands
- Redis - Commands
- Redis - Keys
- Redis - Strings
- Redis - Hashes
- Redis - Lists
- Redis - Sets
- Redis - Sorted Sets
- Redis - HyperLogLog
- Redis - Publish Subscribe
- Redis - Transactions
- Redis - Scripting
- Redis - Connections
- Redis - Server
- Redis Advanced
- Redis - Backup
- Redis - Security
- Redis - Benchmarks
- Redis - Client Connection
- Redis - Pipelining
- Redis - Partitioning
- Redis - Java
- Redis - Php
- Redis Useful Resources
- Redis - Quick Guide
- Redis - Useful Resources
- Redis - Discussion
Redis - Server Shutdown Command
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
redis_server.htm
Advertisements