Windows下Redis下载地址和后台启动停止命令

Windows下Redis下载地址和后台启动停止命令

Windows中Redis下载地址:https://github.com/MicrosoftArchive/redis/releases
可视化工具下载地址:https://github.com/qishibo/AnotherRedisDesktopManager/releases

设置后台启动

  1. 进入下载解压好的目录,修改配置文件redis.windows.conf
  2. 注释bind 127.0.0.1
  3. 将redis默认的守护关闭,即:将protected-mode yes 修改为protected-mode no 没有就不改
  4. 切换到redis的安装目录,输入以下命令:注册服务
redis-server.exe --service-install redis.windows.conf --loglevel verbose
  1. 启动redis
redis-server --service-start
  1. 停止redis
redis-server --service-stop

注意:启动和停止都需要在redis的安装目录下

posted @ 2022-11-17 10:51  橙香五花肉  阅读(360)  评论(0编辑  收藏  举报