一、下载相应的工具包
redis下载地址https://github.com/dmajkic/redis/downloads
rap部署包下载地址 https://github.com/thx/RAP/releases
二、配置和启动redis
在dos命令行环境下:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
D:\devsofts\redis>D:\devsofts\redis\bin\release\redis-server.exe redis.conf
_._
_.-``__
''
-._
_.-`` `. `_.
''
-._ Redis 2.6.12 (00000000
/0
) 64 bit
.-`` .-```. ```\/ _.,_
''
-._
( ' , .-` | `, ) Running
in
stand alone mode
|`-._`-...-` __...-.``-._|
'` _.-'
| Port: 6379
| `-._ `._ / _.-' | PID: 3792
`-._ `-._ `-./ _.-
' _.-'
|`-._`-._ `-.__.-
' _.-'
_.-'|
| `-._`-._ _.-
'_.-'
| http:
//redis
.io
`-._ `-._`-.__.-
'_.-'
_.-'
|`-._`-._ `-.__.-
' _.-'
_.-'|
| `-._`-._ _.-
'_.-'
|
`-._ `-._`-.__.-
'_.-'
_.-'
`-._ `-.__.-
' _.-'
`-._ _.-'
`-.__.-'
[3792] 01 May 23:58:25.400
# Server started, Redis version 2.6.12
[3792] 01 May 23:58:25.401 * The server is now ready to accept connections on po
rt 6379
|
三、配置rap接口工具
将下载的war包解压,修改\WEB-INF\classes下的config.properties文件相应的数据库用户名与密码redis保持原配不动,同时执行classes下database文件夹下的initialize.sql文件,将war包放到tomcat下的webapps文件夹下,启动tomcat即可