redis 在window下的安装

1,redis官方下载地址:https://redis.io/download,redis 64位下载地址:https://github.com/ServiceStack/redis-windows,本人测试使用的是redis-64.3.0.503版本。

2,解压redis-64.3.0.503.zip,解压后的文件结构如下


3,修改redis.windows.conf文件,设置maxmemory 大小 
这里写图片描述 
设置redis密码 (注意requirepass前面不能有空格 否则容易启动闪退)
这里写图片描述

4,启动redis:

在redis文件下面增加一个start.bat的批量处理文件,其内容如下:

redis-server.exe redis.windows.conf 

5,双击start.bat文件启动:

D:\gaozhuan\tools\redis-64.3.0.503>redis-server.exe redis.windows.conf
                _._
           _.-``__ ''-._
      _.-``    `.  `_.  ''-._           Redis 3.0.503 (00000000/0) 64 bit
  .-`` .-```.  ```\/    _.,_ ''-._
 (    '      ,       .-`  | `,    )     Running in standalone mode
 |`-._`-...-` __...-.``-._|'` _.-'|     Port: 6379
 |    `-._   `._    /     _.-'    |     PID: 9320
  `-._    `-._  `-./  _.-'    _.-'
 |`-._`-._    `-.__.-'    _.-'_.-'|
 |    `-._`-._        _.-'_.-'    |           http://redis.io
  `-._    `-._`-.__.-'_.-'    _.-'
 |`-._`-._    `-.__.-'    _.-'_.-'|
 |    `-._`-._        _.-'_.-'    |
  `-._    `-._`-.__.-'_.-'    _.-'
      `-._    `-.__.-'    _.-'
          `-._        _.-'
              `-.__.-'


[9320] 21 Jun 15:36:16.209 # Server started, Redis version 3.0.503
[9320] 21 Jun 15:36:16.211 * The server is now ready to accept connections on port 6379
[9320] 21 Jun 15:47:11.616 * 10 changes in 300 seconds. Saving...
[9320] 21 Jun 15:47:11.634 * Background saving started by pid 9780
[9320] 21 Jun 15:47:11.836 # fork operation complete

[9320] 21 Jun 15:47:11.838 * Background saving terminated with success



  • 1
    点赞
  • 7
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值