Under the windows local system, after installing redis, configure the boot-up self-start function

Preparation: After installing redis,
click redis-server.exe in the installation directory and
see the following picture to prove that the installation is successful.
Insert picture description here
However, there is a disadvantage in doing so. Redis needs to be started manually every time.
In order to reduce this kind of operation, you can add redis to the local service, and then start the service to realize the automatic startup function in the future.
First, cmd to the redis installation root directory to
perform the registration installation service.
At the same time, if you want to uninstall, perform the uninstall service in the same way.

#注册安装服务
redis-server --service-install redis.windows.conf --loglevel verbose
#卸载服务
redis-server --service-uninstall

Then enter the local service of the system, find redis, and start the service.
Insert picture description here

Guess you like

Origin blog.csdn.net/Wangdiankun/article/details/108529374