Redis background starts and runs under the window system

After downloading and decompressing Redis, if you want to run Redis in the background

1. Enter the DOS window

2. Enter the installation directory of Redis

3. Input: redis-server --service-install redis.windows.conf --loglevel verbose (install redis service)

If the following error occurs during the installation process

Redis installation system service 1073 error HandleServiceCommands: system error caught. error code=1073

报错:D:\ProgramFiles\redis>redis-server.exe --service-install redis.windows.conf --loglevel verbose
[12820] 06 Sep 11:00:26.431 # HandleServiceCommands: system error caught. error code=1073, message = CreateService failed: unknown error

Reason: Already exists in the system service

Solution:
1 Uninstall the service first:
redis-server --service-uninstall
2 Then install:

redis-server --service-install redis.windows.conf --loglevel verbose (install redis service)

4. Enter: redis-server --service-start (start service)

5. Input: redis-server --service-stop (stop service)

Start the specified configuration file redis-server --service-start redis.windows-service.conf


 

Guess you like

Origin blog.csdn.net/ywp2021/article/details/128045998