Run msopentech/redis as a service on Windows

Source: Internet
Author: User
Tags visual studio 2010

Servicestack. in the redis usage tutorial, we mentioned that it is best to deploy redis to Linux. Windows is only used for the development environment. Now this proposition has changed. redis in the production environment can also be deployed on Windows, thanks to Microsoft's openness, we have completed redis in the Windows environment. The latest version supports 64-bit. Redis's 32-bit storage capacity is limited by the available address space, that is, 3 GB. To run 64-bit redis on Windows, you canHttps://github.com/MSOpenTech/redisGet a copy of redisCodeAnd then use Visual Studio 2010 to open \ msvs \ redisserver. sln and compile it. Redis is written in C ++, So you install the C ++ compiler.

After compilation, go to msvs \ bin \ release

Copy it to the directory you want to install, and then copy \ msvs \ rediswainst \ samples \ redis. conf. For details, refer to http://redis.io/topics/config.

Start the service and you can see the heartbeat packet output every five seconds.

The server is running. Now we start another command line terminal to switch to the C: \ redis directory:

This indicates that redis is successfully running. Note that you can also go to the http://redistogo.com/to apply for a free redis instance for testing.

In the compiled directory, You can see another tool, rediswatcher, which is a Windows service used to start and monitor one or more redis instances, with this tool, redis can be run as a Windows service.

RunInstallwatcher. MSI,Installed onC: \ Program Files \ rediswatcher, ModifyWatcher. conf

Start the service

With powershell, you can findRediswatchersvcAlready installed

 

Signalr with redis running on a Windows azure Virtual Machine

How to deploy redis to Windows azure using the command line tool

I will continue to recruit people. You are welcome to submit your resume. For job information, see TEG06-IT Application Development Engineer (Shenzhen)

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.