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 po rt 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 - p 6379 redis 192.168 . 0.106 : 6379 > set admin orangleliu OK redis 192.168 . 0.106 : 6379 > get admin "orangleliu" |
Later I learned how to use python to connect to redis.