Install running Redis on Windows service

Source: Internet
Author: User

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

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.