My computer is Win10 64-bit operating system
Download address of redis : https://github.com/MicrosoftArchive/redis/releases/tag/win-3.2.100
Installation steps :
1. Unzip the downloaded compressed package to the path you want to install. My unzipping path is as follows:
Open cmd, enter the decompressed path, enter redis-server redis.windows.conf and press Enter. The following means the startup is successful.
However, if you close the cmd window in the above steps, the redis service will stop, so you need to set redis as a service under windows. Proceed as follows:
Open cmd, enter the redis folder, enter redis-server.exe --service-install redis.windows.conf --loglevel verbose and press Enter to set the service command.
At this time, the setting is successful and the redis service can be seen in the task manager, but it has not been started yet. It can be started manually, as shown in the figure below.
You can also use the command redis-server --service-start to start
Commonly used Redis service commands
Uninstall the service: redis-server --service-uninstall
Start the service: redis-server --service-start
Stop service: redis-server --service-stop