How to install redis on window How to install redis-server

My computer is Win10 64-bit operating system

Download address of redis : https://github.com/MicrosoftArchive/redis/releases/tag/win-3.2.100

How to install redis on window How to install redis-server_nosql

Installation steps :

1. Unzip the downloaded compressed package to the path you want to install. My unzipping path is as follows:

Install redis on window How to install redis-server_redis_02

 Open cmd, enter the decompressed path, enter redis-server redis.windows.conf and press Enter. The following means the startup is successful.

Install redis on window How to install redis-server_cache_03

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.

Install redis on window How to install redis-server_redis_04

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.

How to install redis on window How to install redis-server_redis_05

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

Guess you like

Origin blog.csdn.net/WXF_Sir/article/details/133135544