Run MSOPenTech/Redis as a service on Windows

Source: Internet
Author: User
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.

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.

ServiceStack. redis is recommended to deploy Redis to Linux in the tutorial. Windows is only used for the development environment. Now this proposition has changed: Hong Kong virtual host, we can also deploy Redis in the production environment on Windows. Thanks to Microsoft's openness, we have completed Redis in the Windows environment. Hong Kong server, 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 can get a Redis code from the https://github.com/MSOpenTech/redis, and then open \ msvs \ RedisServer. sln with Visual Studio 2010 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.

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: You can also 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 and server spaces, with this tool, Redis can be run as a Windows service.

Run InstallWatcher. msi and install it in C: \ Program Files \ RedisWatcher by default. Modify watcher. conf.

Start the service

Using Powershell, you can find that RedisWatcherSvc has been 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)

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.