Redis for Windows

Source: Internet
Author: User

Requirements
      • Essential knowledge

        Familiar with basic programming environment construction.

      • Operating Environment

        Windows 7 (64-bit);
        redis64-2.8.17

      • Environment download

What is Redis

Redis is a key-value storage system. Similar to memcached, it supports storing more value types, including string (string), list (linked list), set (set), Zset (sorted set-ordered collection), and hash (hash type). These data types support Push/pop, Add/remove, and intersection-set and difference sets, and richer operations, and these operations are atomic. Based on this, Redis supports sorting in a variety of different ways. As with memcached, data is cached in memory to ensure efficiency. The difference is that Redis periodically writes the updated data to disk or writes the modified operation to the appended record file, and Master-slave (Master-Slave) synchronization is implemented on this basis.

Redis is a high-performance Key-value database. The emergence of Redis, to a large extent, compensates for the lack of memcached such key/value storage, in some cases can be a good complement to the relational database. It provides clients such as Java,c/c++,c#,php,javascript,perl,object-c,python,ruby,erlang, which is convenient to use.

Download and install

Redis's official address, very good remember, is Redis.io. (Io:ritish Indian Ocean Territory, the British Indian Ocean Territory). After entering the official website, I clicked the download link, the result downloaded the software package is not for the Windows platform, then I turn over all pages and links of the site, found the following paragraph, English good children's shoes please translate their own.

This paragraph roughly means "The Redis project does not support Windows systems, but Microsoft Open Tech Goup develops and maintains Redis on the Win64 platform", and then I click on the link to go to GitHub, This is the Windows version of Redis.

    • Https://github.com/MSOpenTech/redis

Click on the "Download ZIP" button to download our Redis software package in Windows.

Then unzip the zip file into the bin directory to see the following files:

redis-benchmark.exe         #基准测试  redis-check-aof.exe         # aof  redis-check-Dump.exe        # Dump  redis-cli.exe               # client  redis-server.exe            # server  redis.windows.conf          # configuration file

is not very perfect, so we will successfully download down, haha ~~~!! Then you can start our footsteps right!! True TM of the nonsense, labor to bin directory under nothing to see! Do not believe yourself to try! As for the version I used has been uploaded to Baidu Cloud, go down!

Startup scripts

Redis-server.exe redis.windows.conf

Then the error is right:

As a hint, there is a problem with the Maxheap identity, open the profile redis.windows.conf , search for Maxheap, and then directly specify the good content. The code location is as follows:

Testing with the client tools

Redis-cli.exe-h 127.0.0.1-p 6379

duang! The Redis for Windows environment is built, and it's not easy. Now that the environment is set up, let's test it. For example: Store a string with key test,value as Hello Word and get the key value.

If the above articles or links are helpful to you, don't forget to click the "OK" button at the end of the article or click the "like a " button in the bottom right corner of the page. You can also click on the right side of the page " share " hover button Oh, let more people read this article.

Author: Li-cheng Weibo: http://weibo.com/licheng0426 Source: http://www.cnblogs.com/Li-Cheng/p/4388123.htmldue to my limited level, the article in terms of presentation and code if there is something wrong, welcome criticism. Leave your footprints, welcome to comment Oh. You can also pay attention to me, study together Oh! (^_^) If you think this article is helpful to you, let's enjoy a coffee bar, what's The DA (^_^)

Redis for 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.