工具RedisWatcher ,這是一個Windows服務,用來啓動和監控一個或者多個Redis實例,用上這個工具就能夠把Redis做爲一個Windows服務來運行。redis
RedisWatcher下載地址:http://download.csdn.net/download/xiao_wu_show/9029315
下載完成後,雙擊msi進行安裝,路徑以下:E:\RedisWatcher。打開watcher.conf,修改配置。工具
# required exepath and exename are combined to form full path exepath E:\redis\32bit //redis的安裝路徑 exename redis-server.exe # optional fastfailMS is milliseconds after which failure is not failure to start (default 1000) #fastfailMS 1000 # optional fastfailretries is number of times to retry if failure before fastfailMS (default 0) #fastfailretries 0 # for each instance to run, put properties between '{' and '}' lines # 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) # optional saveout is '1' or '0'. To save stdout to file use '1'. { workingdir E:\redis\32bit runmode hidden saveout 1 cmdparms E:\redis\32bit\redis.conf } #{ # workingdir E:\redis\32bit //工做目錄,生成stdout.log 日誌和stderr.log錯誤日誌 #runmode hidden #saveout 1 #cmdparms redis.conf #}
//注意:RedisRedis只能監聽由RedisWatcher啓動的redis進程
此時,咱們的redis服務已經開啓。看看日誌post
打開CMD命令,鏈接到redis服務。ui
此時,已經有客戶端鏈接到咱們的redis服務,再看看日誌記錄:spa
OK,完成。.net