Startup of Redis under Windows

Source: Internet
Author: User
Tags redis server

1. First, you need to download the Windows version of Redis, address: Https://github.com/MSOpenTech/redis, here you can choose to download the source code after compiling their own, you can directly download the post-release version, I am directly download the post-release version Release version

2. After the download, directly after the decompression, you can directly start the Redis server

  

  

3. Then start the client directly:

  

4. You can then use the relevant commands for Redis.

  

  

Note: Since the above operation can only be achieved by local access to the local server, if the Redis server on the remote service side, not local, this time need to modify the configuration redis.conf, bind the server's IP address, so that the remote connection to the Redis server

    

The IP of the BIND server

(ii),. NET Use of Redis

1. If you need to use Redis in your program, you need support for third-party libraries, Servicestack.redis,: Https://github.com/ServiceStack/ServiceStack.Redis,

  

2. Download the release version, after extracting, refer to the relevant third-party library as follows:

    

3. This allows Redis to be operated directly.

            New Redisclient ("1**.*.*.*");            Client. Set ("Year" ");             string res = client. get<string> ("year");            Response.Write (res);

More usage can be found in other related documents ...

Startup of Redis under Windows

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.