Installing Redis under Windows

Source: Internet
Author: User
Tags redis windows redis server

installing Redis under Windows

1.redis Introduction

Redis is a key-value storage system. Similar to memcached, it supports storing more value types, including spring (string), list (linked list), set (set), Zset (sorted set-ordered set), and HASHS (hash type). These data types support push/pop,add/remove as well as the intersection and set of differences and the richer operations, and these operations are atomic in nature.

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.

2.windows installation of Redis

Https://github.com/dmajkic/redis/downloads. Download to Redis support 32bit64bit.

Open the cmd window and switch to the specified directory (D:\dev\redis\redis-2.4.5) by CD torun Redis-server.exe redis.conf. The following interface appears after running.

This means that the Redis server has been successfully installed.

Reopen a CMD window, switch to the specified directory via the CD command (D:\dev\redis-2.45) run redis-cli.exe-h 127.0.0.1-p 6379-a 123456 Where 127.0.0.1 is the local ip,6379 is the default port on the Redis server and 123456 is the Redis password. The run succeeds as shown in.

In this way, the build of the Redis Windows environment is complete.



Now that the environment is built, EP:

Store a string with a key of test,value as Hello Word, and then get the key value


Correct output hell Word, test success!

Installing 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.