Install Redis on Windows

1. Download the Windows version of Redis

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.

 

Guess you like

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