在Windows Service上安装运行Redis
2020-12-13 04:09
标签:style blog http color strong os CSDN下载RedisWatcher,运行InstallWatcher.msi,默认安装在C:\Program Files (x86)\RedisWatcher,修改watcher.conf 安装成功之后,可以在WindowsService中找到Redis服务,如下图: Redis命令参考:https://redis.readthedocs.org/en/latest/index.html Redis操作的封装类:http://blog.wx6.org/2013/349.htm 在Windows Service上安装运行Redis,搜素材,soscw.com 在Windows Service上安装运行Redis 标签:style blog http color strong os 原文地址:http://www.cnblogs.com/qiyebao/p/3834587.html 1 # required exepath and exename are combined to form full path
2 exepath D:\Demos\redisdev\redis
3 exename redis-server.exe
4
5 # optional fastfailMS is milliseconds after which failure is not failure to start (default 1000)
6 #fastfailMS 1000
7
8 # optional fastfailretries is number of times to retry if failure before fastfailMS (default 0)
9 #fastfailretries 0
10
11 # for each instance to run, put properties between ‘{‘ and ‘}‘ lines
12 # required workingdir is working directory for process - must be unique
13 # optional runmode may be ‘console‘ or ‘hidden‘
14 # optional cmdparms is command line after exename (ex: cmdparms redis.conf)
15 # optional saveout is ‘1‘ or ‘0‘. To save stdout to file use ‘1‘.
16 {
17 workingdir D:\Demos\redisdev\redis
18 runmode hidden
19 saveout 1
20 cmdparms D:\Demos\redisdev\redis\redis.conf
21 }
22 #{
23 # workingdir c:\redis\inst2
24 #runmode hidden
25 #saveout 1
26 #cmdparms redis.conf
27 #}