Redis-cli command to restart the redis server

Adarsh Philip picture Adarsh Philip · Apr 1, 2016 · Viewed 10.8k times · Source

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?

Answer

Itamar Haber picture Itamar Haber · Apr 1, 2016

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