Building and testing redis in Windows

Source: Internet
Author: User
Tags download redis redis windows

Redis
Build an environment in Windows

From http://www.cnblogs.com/chenchunyong/archive/2013/04/17/Redis.html

1. What is redis?

Redis is a high-performance Key-value database that does not support any SQL statements. It supports more storage value types, including string, list, set, and zset ). These data types support push/pop, Add/Remove, Intersection Set and difference set, and more abundant operations, and these operations are atomic. On this basis, redis supports sorting in different ways. Like memcached, data is cached in the memory to ensure efficiency. The difference is that redis periodically writes the updated data to the disk or writes the modification operation to the append record file, and on this basis implements master-slave (master-slave) synchronization.

2. Set up the redis environment in. net.

To do a good job, you must first sharpen the tool. To learn about redis, you must first set up the environment. To set up the environment, you must download redis. Https://github.com/dmajkic/redis/downloads. The downloaded redis supports 32bit and 64bit. Select 64bit based on your actual situation.

Copy the 64bit file content to the directory to be installed, for example, E: \ reids.

Open a cmd window and use the CD command to switch to the specified directory (E: \ redis) and run the redis-server.exe redis. conf. The following page is displayed after running.

This indicates that the redis server has been installed successfully.

Open a new cmd window and run the CD command to switch to the specified directory (E: \ redis) and run the redis-cli.exe-H 127.0.0.1-P 6379 where 127.0.0.1 is the local IP and 6379 is the default port of the redis server. As shown in.

 

In this way, the setup in redis Windows environment is complete, isn't it easy.

The environment has been set up. You have to test it. For example, store a string whose key is test and value is Hello word, and then obtain the key value.

 

Test successful!

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.