Does Redis installed on a simple Droplet start automatically?

  • Posted March 6, 2020
  • Redis

Hi there!

For my Node app I have pm2 running but I wonder how Redis behaves when the server is shut down for a reason?

I just shut it down and restart my Droplet with (only) Redis installed and it seems that it has started automatically. My backend with Node could connect to it without further ado.



Submit an answer
You can type!ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

This behavior depends on the operating system that you’re running and not necessarily Digital Ocean.

I assume that you installed Redis with your operating system’s package manager (ex. yum for CentOS or apt for Ubuntu). The package managers for many popular Linux OSes will include startup and shutdown scripts to automatically start and stop the service when the OS changes run levels.