Windows installation Redis

Source: Internet
Author: User

1: First download the redis-x64-2.8.2400.zip.

Https://github.com/MSOpenTech/redis/releases/download/win-2.8.2400/Redis-x64-2.8.2400.zip
From the following address: https://github.com/MSOpenTech/redis/releases
2: After decompression, there are the following files:

Redis-benchmark.exe #基准测试
Redis-check-aof.exe # AOF
Redischeck-dump.exe # Dump
Redis-cli.exe # Client
Redis-server.exe # Server
REDIS.WINDOWS.CONF # configuration file

Open redis.windows.conf File:

This is a configuration file that specifies the parameters for Redis. Such as:

Line 41st: Port 6379

Line 71st: Timeout 0

Line No. 454: # maxheap <bytes>

In the CMD Command Line window, navigate to the Unzip folder and enter the command Redis-server.exe redis.windows.conf

Error:

Workaround:

According to the prompt, is the maxheap identification problem, open the profile redis.windows.conf, search maxheap, and then directly specify the size of about 1Gb.

......

Line No. 454: # maxheap <bytes>

Maxheap 1024000000

.......

Start again, OK, success.

Service Start Success Status:

Start the cmd window of the Redis service without shutting it down because the service needs to be executed all the time, close the service, and close the window directly.

A new CMD window opens, with the client tool to test the command "Redis-cli.exe", the detailed operation is as follows. The example shows a basic read-write operation that sets the set Key->age,value->21,get age to get the value of key.

Windows installation Redis

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.