Enter the directory redis
redis-server --service-install redis.windows.conf // installation services
redis-server --service-start // start the service
redis-server --service-stop // stop service
redis-server --service -uninstall // unloading services
Reproduced in: https: //www.jianshu.com/p/049269a66478