WINDOW Install Redis and set to boot startup

1. Download the Windows version of Redis

I went to the official website for a long time, and found that the version of windows that was originally available for download on the official website, now the official website and no download address, can only be on github Download, 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 version downloaded here is Redis-x64-3.2.100, my computer is win7 64-bit, so download the 64-bit version , Enter cmd during operation, and then point the directory to the unzipped Redis directory.

2. Start command

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

Although redis is started, as long as the cmd window is closed, redis will disappear. So redis must be set as a service under windows.

Three, set up the Redis service

First of all, it was discovered that the Redis service was useless.

Add service: redis-server.exe –service-install redis.windows.conf

After entering the command, no error is reported, indicating success. Refresh the service and you will see more A redis service.

Start the service: redis-server.exe–service-start

Stop the service: redis-server.exe–service-stop

Uninstall the service: redis-server.exe–service-uninstall

Link to the original text: https://blog.csdn.net/hong10086/article/details/80418556

p>

Leave a Comment

Your email address will not be published.