Start every day things redis although only a command line, but it is quite annoying, so ......
Reference document: Windows Service Documentation.docx
Default premise: Redis is already installed and configured this (do not know how to configure, please see the Win10 1903 white building Redis )
step:
1, to navigate Redis installation path, the new folder logs, as shown in FIG.
2, installation services, shift + right-click and select Open windows powershell here
Enter the command redis-server --service-install redis.windows-service.conf --loglevel verbose, open the service visible Redis has joined
3, start the service, type the command redis-server --service-start service start redis
4, bat configuration command
Every command line configuration redis service is still too much trouble, the new four bat direct command:
New installation directory redis four txt, change the name as shown below, be sure to pay attention to modify the filename extension:
Respectively corresponding to the four right-click the file, choose Edit, edit the command is as follows:
InstallService.bat——redis-server --service-install redis.windows-service.conf --loglevel verbose
StartService.bat——redis-server --service-start
StopService.bat——redis-server --service-stop
UninstallService.bat——redis-server --service-uninstall
这样,以后启动停止redis就双击这四个命令就可以了,如果记不住路径就发送桌面快捷方式吧,直接桌面一键启停!