Introduction to 64-bit Redis installation under Windows7

Source: Internet
Author: User
Tags redis server

On the internet to find a lot, pointing to the same address, but can not open. Https://github.com/MSOpenTech/redis/releases. The URL was banned. Finally found a useful post, installation success. Thank you koal, blog address: http://www.cnblogs.com/koal/p/5484916.html

First quote Baidu Encyclopedia of a paragraph, specific to the encyclopedia to see it.

Redis is an open source API that is written in ANSI C, supports the web, can be persisted in memory, key-value databases, and provides multiple languages. From March 15, 2010 onwards, the development work of Redis is hosted by VMware. Since May 2013, the development of Redis has been sponsored by pivotal.

Official: Http://redis.io/download, but there is no official 64-bit Windows executable program, currently has an open source hosted on GitHub, address: https://github.com/ServiceStack/ Redis-windows Click this place, download the file and unzip it to your own computer directory.

This article uses version:redis64-3.0.501.zip

The following directories are extracted:

Then edit the redis.windows.conf file, I see some tutorials on the web said the editor inside Maxheap <bytes> , but after the 3.x version, modified is MaxMemory < Bytes>, Bytes is byte, please self-conversion, I change here to maxmemory 1024000000.

In fact, this place can not be set, he described the already said, Redis will automatically set.

Set the Redis password: Find # requirepass foobared instead of requirepass my password , the native test is not set.

After saving open the Redis directory, shift+ the left mouse button to find the menu: Open a command line window here or run the cmd command yourself to this directory

The command is as follows:

Redis-server.exe redis.windows.conf--maxmemory 200M

Where--maxmemory 200M is optional, if you configure the file redis.windows.conf configuration, this can be omitted, if not configured, this can add also can not add, you happy good.

When this interface appears, the boot is successful, listen to Port 6379, and let's test the effect.

Reopen a DOS interface with the following effect:

If you set up a redis password, you need to execute the auth password command before set, otherwise the Noauth authentication required will be indicated (error).

Finally, add Redis to the Windows service. The first is to start the Redis server side, and then through the Windows Service-install command, enter as follows, you can use the win service to start, and do not need to open a DOS interface every time to start.

installation command:

redis-server.exe--service-install redis.windows.conf--loglevel verbose Uninstall command: Redis-server--service-uninstall

Introduction to 64-bit Redis installation under Windows7

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.