[Reproduced]win7x64 under the Redis installation and use

Source: Internet
Author: User
Tags benchmark install redis redis server

The original application is: 'https://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.

1. Download and install

Official: ' http://redis.io/download` but officially there is no 64 executable program under Windows, there is 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 the version: 'redis64-3.0.501.zip`

The following directories are extracted:

File name Brief

    • redis-benchmark.exeBenchmark Test
    • redis-check-aof.exeAoF
    • redischeck-dump.exeDump
    • redis-cli.exeClient
    • redis-server.exeServer
    • redis.windows.confConfiguration file
2. Modify the configuration

Then edit the redis.windows.conf file, I see some tutorials on the web said the editor inside Maxheap, but after the 3.x version, modified is maxmemory, Bytes is a byte, please self-conversion, I changed 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 change to ' requirepass 我的密码 , the native test is not set.

3. Start the service

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`
Which --maxmemory 200M is optional, if you configure the file ' configuration redis.windows.conf` , this can be omitted, if not configured, this can add also can not add, you happy good.

4. Testing

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 a redis password, you need to execute the auth password command before set, otherwise you will be prompted '(error) NOAUTH Authentication required.`

5. Add a service

Finally, add Redis to the Windows service. First, start the Redis server, and then run the Redis client, and then through the Windows Service-install command, enter

`redis-server --service-install redis.windows.conf --loglevel verbose`
You can start with the win service later, without having to open a DOS interface every time.

Recommended Redis Technology read: http://www.cnblogs.com/hoojo/p/4466024.html

Recommended Redis Desktop client: Http://www.oschina.net/p/redis-studio

<wiz_tmp_tag id= "Wiz-table-range-border" contenteditable= "false" style= "Display:none;" >

[Reproduced]win7x64 under the Redis installation and use

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.