標籤:style blog http color strong os
CSDN下載RedisWatcher,運行InstallWatcher.msi,預設安裝在C:\Program Files (x86)\RedisWatcher,修改watcher.conf
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 010 11 # for each instance to run, put properties between ‘{‘ and ‘}‘ lines12 # required workingdir is working directory for process - must be unique13 # 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\redis18 runmode hidden19 saveout 120 cmdparms D:\Demos\redisdev\redis\redis.conf21 }22 #{23 # workingdir c:\redis\inst224 #runmode hidden25 #saveout 126 #cmdparms redis.conf27 #}watcher.conf
安裝成功之後,可以在WindowsService中找到Redis服務,如:
Redis命令參考:https://redis.readthedocs.org/en/latest/index.html
Redis操作的封裝類:http://blog.wx6.org/2013/349.htm