Redis is one of the fastest and most feature-rich in-memory key value data stores to come from the NoSQL movement.
If you run Redis on Windows machine, the best option is to run each Redis instance as Windows service. This project helps you to do that. It was tested with Redis binaries.
To install Redis as service, just compile project sources, put it in the same folder with "redis-server" and "redis-cli" executables and then execute:
sc create %name% binpath= "\"%binpath%\" %configpath%" start= "auto" DisplayName= "Redis"
Where:
- %name% -- name of service instance, ex.
redis-instance
; - %binpath% -- path to this project exe file, ex.
C:\Program Files\redis\RedisService.exe
; - %configpath% -- path to redis configuration file, ex.
E:\Redis\redis.conf
;
To understand another properties, likestart
andDisplayName
, read article How to create a Windows service by using Sc.exe.
To uninstall service, simply execute:
sc delete %name%
Where %name% -- name of already installed service instance.
For testing purposes, you can run redis service in console mode, like
%binpath% %configpath%