[Redis] install and start redis in windows

Source: Internet
Author: User
Tags redis version

Official: http://redis.io/download

In the win64 column, we can see that there was no windows version for redis, and the windows version was developed by the Microsoft Open Tech team.

Given a github link: https://github.com/MSOpenTech/redis


Download:

In the lower-right corner of the https://github.com/MSOpenTech/redis page with the words Download Zip, click to Download the source code zip package.

Decompress the package: the decompressed directory is D: \ devsofts \ redis.

The started program is in the subdirectory D: \ devsofts \ redis \ bin \ release. One is 32-bit and the other is 64-bit.


Configuration and startup:

In the doscommand line environment:

12345678910111213141516171819202122 D:\devsofts\redis>D:\devsofts\redis\bin\release\redis-server.exe redis.conf                _._           _.-``__ ''-._      _.-``    `.  `_.  ''-._           Redis 2.6.12 (00000000/0) 64 bit  .-`` .-```.  ```\/    _.,_ ''-._ (    '      ,       .-`  | `,    )     Running in stand alone mode |`-._`-...-` __...-.``-._|'` _.-'|     Port: 6379 |    `-._   `._    /     _.-'    |     PID: 3792  `-._    `-._  `-./  _.-'    _.-' |`-._`-._    `-.__.-'    _.-'_.-'| |    `-._`-._        _.-'_.-'|           http://redis.io  `-._    `-._`-.__.-'_.-'_.-' |`-._`-._    `-.__.-'    _.-'_.-'| |    `-._`-._        _.-'_.-'|  `-._    `-._`-.__.-'_.-'_.-'      `-._    `-.__.-'    _.-'          `-._        _.-'              `-.__.-' [3792] 01 May 23:58:25.400 # Server started, Redis version 2.6.12[3792] 01 May 23:58:25.401 * The server is now ready to accept connections on port 6379

The command line directory is the root directory of redis.

The command to start is the exe command under bin.

1 D:\devsofts\redis\bin\release\

Add to system path.


Test:

Access through a client program:

123456 D:\devsofts\redis>D:\devsofts\redis\bin\release\redis-cli.exe -h 192.168.0.106 -6379redis 192.168.0.106:6379set admin orangleliuOKredis 192.168.0.106:6379get admin"orangleliu"


Later I learned how to use python to connect to 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.