进入到 redis 目录下的 bin 文件夹,打开 cmd

执行:redis-server –service-install redis.windows-service.conf –loglevel verbose

 

卸载服务:redis-server –service-uninstall

开启服务:redis-server –service-start

停止服务:redis-server –service-stop