Redis Learning Note (i) About installation learning in WINDOWS64-bit environments

Source: Internet
Author: User
Tags install redis

Objective

I am currently learning to use redis because of my work needs. I studied Redis and downloaded some information from the Internet and began to learn. Getting started is the Redis Getting Started guide, a book that personally feels suitable for beginners to learn to contact. According to the guide in the book, learning Redis requires that you first install Redis. I had a lot of problems installing Redis because my computer was Windows64 and there was no POSIX system and OS X system, so I could only install it in the Windows environment, according to the book. You need to install Cygwin (Cygwin can emulate a Linux system environment in a Windows environment). Tinker for a week, the process is difficult, finally set up the environment. Later found that in fact do not need such trouble, Baidu has a lot of similar methods, here I come to summarize, if there is a problem, please inform.

Brief introduction

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 the disk or writes the modified operation to the appended record file, and implements the Master-slave on this basis.

Installing Redis

(1) Tools: WINDOWS64-bit operating system

Redis3.28 version: Http://www.redis.cn/download.html https://github.com/ServiceStack/redis-windows

(2) Installation

The agreed minor version number of the Reids (that is, the number after the first decimal point) is a stable version (for example, v2.8,v3.0).

After the decompression is this:

  

What we need here is 64bit this file package, inside Open is this:

Redis-benchmark.exe #基准测试

Redis-check-aof.exe # AOF

Redischeck-dump.exe # Dump

Redis-cli.exe # Client

Redis-server.exe # Server

REDIS.CONF # configuration file

After knowing what these files are all about, we can test it.

(3) test

Windows run (shortcut: Windows key +r), enter the "cmd" command to enter the DOS operating system window. First go to your Redis directory and use the command "Redis-server.exe redis.windows.conf" to start the Redis service. In general, the first start of the service will have an error, according to the hint is maxheap identity problems, open the configuration file redis.windows.conf, search Maxheap, and then directly specify the good content.

......

#

# Maxheap <bytes>

Maxheap 1024000000

.......

Then it starts again, and it appears as shown, which means success.

Do not close this CMD window after successful startup, because the service needs to be executed all the time, and if the service is closed, close the window directly. Reopen a CMD window, enter your Redis directory, enter the command "Redis-cli.exe", and then enter to open a client, where you can test various commands in your study. The example shown shows a basic read-write operation, setting set Key->name,value->hello "World", get name to get the value of key. Note that a double quotation mark is required for a space in value, or Redis will automatically filter out spaces. Examples are as follows:

Finish.

Bo Master is the first time to use such a website form to record their own learning process, so some bad places welcome everyone to guide, here thank you.

Redis Learning Note (i) About installation learning in WINDOWS64-bit environments

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.