打开CMD,进入redis安装目录,执行如下命令:

  #redis.windows.conf 为配置文件名称,根据实际情况修改
 redis-server.exe --service-install redis.windows.conf