Redis can be installed as a Windows service, starting from boot, the command is as follows:
Redis-Server -service-install Redis. Windows. conf
Once installed, you can see that Redis is already a Windows service:
However, after installation, Redis does not start, and the Start command is as follows:
Redis-Server -service-start
Stop command:
Redis-Server -service-stop
You can also install multiple instances
1.Redis-Server -service-install –service-name RedisService1 –port 10001
< Span class= "PLN" >< Span class= "PLN" > 2, redis-server --service-start –< Span class= "PLN" >service-name redisService1
< Span class= "PLN" > 3, redis-server --service-install Span class= "pun" >–service-name RedisService2 –port 10002
< Span class= "PLN" >< Span class= "PLN" > 4, redis-server --service-start –< Span class= "PLN" >service-name redisService2
< Span class= "PLN" > 5, redis-server --service-install Span class= "pun" >–service-name redisService3 –port 10003
6. Redis-Server -service-start –service-name RedisService3
Deploying Redis into Windows Services