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