1. Enter the DOS window
2. Enter the installation directory of redis
3. Enter: redis-server --service-install redis.windows.conf --loglevel verbose (install redis service)
4. Enter: redis-server --service-start (start service)
5. Enter: redis-server --service-stop (stop the service)
Note: This command: redis-server --service-install redis.windows.conf --loglevel verbose (install redis service)
needs to be executed in the redis installation directory to execute successfully.
Reference link: https://blog.csdn.net/justinytsoft/article/details/54614068