Redis-cli command to restart the redis server

11,826

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

Share:
11,826
Adarsh Philip
Author by

Adarsh Philip

Updated on June 04, 2022

Comments

  • Adarsh Philip
    Adarsh Philip almost 2 years

    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?