How do i start & stop the redis server using native redis commands?



  • If you installed redis via an OS package management utility, you can run the service or systemctl commands to perform the starting and stopping the redis-server.

    To use the redis native commands.

    To start the redis-server. cd to your redis installation directory. Changing the redis.conf entry "daemonize no" into "daemonize yes", will run the redis-server in the background.

    $ bin/redis-server conf/redis.conf
    

    To stop the redis-server. gracefully.

    $ bin/redis-cli shutdown
    

Log in to reply
 

© Lightnetics 2024