码迷,mamicode.com
首页 > Windows程序 > 详细

Run Redis On Windows

时间:2014-11-27 12:13:03      阅读:403      评论:0      收藏:0      [点我收藏+]

标签:http   io   ar   os   sp   for   on   art   log   

If you go to the current version and open up the bin > release folder, you‘ll get a ZIP file containing the relevant files as well as a Word document called RedisService.docx with the following instructions:

Installing the Service

--service-install

This must be the first argument on the redis-server command line. Arguments after this are passed in the order they occur to Redis when the service is launched. The service will be configured as Autostart and will be launched as "NT AUTHORITY\NetworkService". Upon successful installation a success message will be displayed and Redis will exit. This command does not start the service.

For instance:

redis-server --service-install redis.windows.conf --loglevel verbose

And then later, in the same document, another example:

The following would install and start three separate instances of Redis as a service:

redis-server --service-install –service-name redisService1 –port 10001

redis-server --service-start –service-name redisService1

redis-server --service-install –service-name redisService2 –port 10002

redis-server --service-start –service-name redisService2

redis-server --service-install –service-name redisService3 –port 10003

redis-server --service-start –service-name redisService3

From what I can gather, this appears to be the new way forward rather than messing with a separate Windows service to monitor and restart the CLI.

Run Redis On Windows

标签:http   io   ar   os   sp   for   on   art   log   

原文地址:http://www.cnblogs.com/Magicworks/p/4125948.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!