|
How to Keep Redis Running 24/7 with Service Protector |
Automatically restart the Redis Windows Service if it crashes or is accidentally shut down. Ensure that your in-memory database is always available to serve your applications
Last Updated on November 11, 2026
Redis is an open-source in-memory data structure store supporting common data structures.
The Community/Microsoft Open Technologies port can be installed as a Windows Service for 24x7 operation.
Here it is in services.msc:
To protect the Redis Windows Service:
-
Download and install Service Protector, if necessary.
-
Start Service Protector.
-
Select Protector > Add to open the Add Protector window:
-
On the General tab, select Redis Server in the Service to protect dropdown.
You'll notice a green circle on the left if the service is already running, as pictured below:
-
Redis is a TCP/IP-based service that should always be accepting network requests.
Let's set up a health check that will automatically restart the service if it ever stops processing incoming queries.
-
Switch to the Monitor tab. Check the Whenever it fails a periodic sanity check box and click the Set button:
-
In the Add Sanity Check window, select the Check that your service has open network connections
option and click Next to proceed:
-
The next page allows you to specify what kind of network connections to look for.
Since Redis is a server that must always have a listening connection, check the Require at least one listening/server connection option.
Click Next to continue.
-
At this point, specify how often Service Protector should check that Redis is connected.
Every 5 minutes should be good enough but feel free to adjust as you see fit:
After you're done, click Next to move on.
-
And finally, confirm your settings:
If everything looks good, click Add
to record your new sanity check and return to the Monitor tab.
-
Click the Save button. In a couple of seconds, an entry for Redis Server will show up in the main window.
Protection should have started and the shield icon should be green to indicate that Redis is being watched by Service Protector.
Your Redis service is now safe from accidental shutdowns!
-
That's it! Next time your computer boots, Redis will start as normal and Service Protector will begin monitoring the service to promptly restart it if it fails or stops for any reason.
We encourage you to edit Redis in Service Protector and check out the many other settings that may be appropriate for your environment.
For example, send an email when the service fails, cycle Redis during the early-morning hours to keep performance snappy,
restart the Redis service if it gets stuck starting, and much more.
Trouble protecting the Redis Windows Service?
From Service Protector, select Protector > Report Activity > Today to bring up an HTML report detailing the interaction between Service Protector and Redis.
Browse the Service Protector FAQ for answers to commonly asked questions and troubleshooting tips.
Contact us and we will be happy to help!
|
Peace of mind for your important Windows Services!
|
 |
|
Step-by-step guides for 70+ Services
|