Search code examples
redisredis-cli

Redis-cli command to restart the redis server


I terminated the redis server using SHUTDOWN from redis-cli. Now the prompt shows 'not connected>'.

The only way I found to restart the server was to exit the redis-cli prompt and then do a restart of the redis service.

My question is, is there any way to restart the server from the redis-cli prompt using any redis commands WITHOUT EXITING the redis-cli prompt?


Solution

  • While you don't have to exit the cli, the server cannot be restarted from it once it is shut down.