windows下安装redis

1. github 下载 zip (或 msi) 安装包,并解压到指定目录:

  https://github.com/microsoftarchive/redis

  https://github.com/microsoftarchive/redis/releases

2. 修改 redis.windows.conf 配置文件

  配置日志文件

    logfile "yourpathlog.txt"

3. 安装服务

  进入 redis 解压目录,执行一下命令:

    redis-server --service-install redis.windows.conf  --loglevel verbose

4. 卸载服务

  redis-server --service-uninstall

5. 启动服务

  redis-server --service-start

6. 停止服务

  redis-server --service-stop

参考文章:

  https://www.cnblogs.com/xuzhiwei/p/4569315.html

原文地址:https://www.cnblogs.com/tarencez/p/12229579.html