CSDN download Rediswatcher, run installwatcher.msi, installed by default in C:\Program Files (x86) \rediswatcher, Modify watcher.conf
1 # required ExePath and exename is combined to form full path2 ExePath D:\Demos\redisdev\redis3 exename Redis-server.exe4 5# optional Fastfailms is milliseconds after which failure are not failure to start (default 1000)6#fastfailMS 10007 8# optional fastfailretries is number of times to retry if failure before Fastfailms (default 0)9#fastfailretries 0Ten One# for each instance to run,put properties between ' {' and '} ' lines A # required Workingdir is working directory for process-must be unique - # Optional RunMode may be ' console ' or ' hidden ' - # optional Cmdparms is command line after EXEName (ex:cmdparms redis.conf) the# optional Saveout is ' 1 ' or ' 0 '. To save stdout to file use ' 1'. - { - Workingdir D:\Demos\redisdev\redis - RunMode Hidden +Saveout 1 - cmdparms D:\Demos\redisdev\redis\redis.conf + } A #{ at # Workingdir C:\redis\inst2 - #runmode Hidden -#saveout 1 - #cmdparms redis.conf -#}
watcher.conf
After the installation is successful, Redis services can be found in windowsservice, such as:
Redis Command Reference: https://redis.readthedocs.org/en/latest/index.html
Encapsulation class for Redis operations: http://blog.wx6.org/2013/349.htm