Installation of redis under Windows

1. Download the Windows version of Redis

I went to the official website to search for a long time, and found that the windows version that could be downloaded on the official website was originally available. Now the official website and no download address can only be downloaded on github. The official website only provides the download of the linux version.

Official website download address: http://redis.io/download

github download address: https://github.com/MSOpenTech/redis/tags

2. Install Redis

1. The Redis-x64-3.2.100 version is downloaded here. My computer is win7 64-bit, so download the 64-bit version, enter cmd during operation, and then point the directory to the decompressed Redis directory.



2. Start command

redis-server redis.windows.conf, the following figure shows that the startup is successful.



3. Set up the Redis service

1. Although redis is started above, as soon as the cmd window is closed, redis will disappear. So set redis as a service under windows.

That is to say, it is set here. First of all, it is found that this Redis service is useless.

2. Set the service command

redis-server --service-install redis.windows-service.conf --loglevel verbose

No error is reported after entering the command, indicating success, refresh the service, and you will see an additional redis service.


3. Common redis service commands.

Uninstall the service: redis-server --service-uninstall

Start the service: redis-server --service-start

Stop the service: redis-server --service-stop

4. Start the service

5. Test Redis


The installation test was successful.

   Here is just a simple installation, deployment service use, for more in-depth use, you can go to the redis Chinese website to see  http://www.redis.net.cn/  There are also many in-depth use methods in the blog park, because my blog system needs to use , to be a throwback.

   There is a document in the downloaded decompression package with detailed instructions.


Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325725595&siteId=291194637