[Redis learning (1)] teach you how to install redis under windows and build a cluster

One: download and install redis

Redis is officially supported for Linux . There is nothing to say about installation and use. For general use, follow the official instructions and it will be done soon. For details, refer to the official redis document http://www.redis.cn/


But sometimes I am not familiar with linux and want to toss redis under windows.There is a windows64-bit version of redis on github


Here is the URL https://github.com/MicrosoftArchive/redis/releases You can download it yourself


If the download is too slow, you can download this resource that I uploaded to csdn http://download.csdn.net/download/a447332241/9930621


After downloading, create a new folder [redis] in Disk D, and then create another [redis] ps below: After that, it is convenient to build a cluster, right click to decompress the Redis ZIP package, and extract all files to the redis folder.


File introduction:

redis-benchmark.exe         #基准测试
redis-check-aof.exe         # aof
redischeck-dump.exe        # dump
redis-cli.exe               # 客户端
redis-server.exe            # 服务器
redis.windows.conf          # 配置文件



Open cmd, switch to the Redis directory, execute


 redis-server.exe redis.windows.conf


Do not close the window, reopen a cmd window and connect to Redis to execute

redis-cli.exe -h 127.0.0.1 -p 6379



In this way, our redis is successfully installed, and the next article will introduce the construction of the cluster on this basis


Guess you like

Origin blog.csdn.net/a447332241/article/details/77114034