redis 安装测试

参考https://my.oschina.net/lujianing/blog/204103(Windows下Redis的安装使用)java

发现3.0版本须要经过vs去编译。机器没装编译器,只好用了2.6git

https://github.com/MSOpenTech/redis/tree/2.6github

在这个路径https://github.com/MSOpenTech/redis/tree/2.6/bin/release有执行文件。redis

下载,解压以后,点击redis-server.exe执行。服务器

[1368] 27 Nov 23:24:43.885 # Warning: no config file specified, using the defaul
t config. In order to specify a config file use E:\redis-2.6\bin\release\redisbi
n64\redis-server.exe /path/to/redis.conf
                _._
           _.-``__ ''-._
      _.-``    `.  `_.  ''-._           Redis 2.6.12 (00000000/0) 64 bit
  .-`` .-```.  ```\/    _.,_ ''-._
 (    '      ,       .-`  | `,    )     Running in stand alone mode
 |`-._`-...-` __...-.``-._|'` _.-'|     Port: 6379
 |    `-._   `._    /     _.-'    |     PID: 1368
  `-._    `-._  `-./  _.-'    _.-'
 |`-._`-._    `-.__.-'    _.-'_.-'|
 |    `-._`-._        _.-'_.-'    |           http://redis.io
  `-._    `-._`-.__.-'_.-'    _.-'
 |`-._`-._    `-.__.-'    _.-'_.-'|
 |    `-._`-._        _.-'_.-'    |
  `-._    `-._`-.__.-'_.-'    _.-'
      `-._    `-.__.-'    _.-'
          `-._        _.-'
              `-.__.-'测试

[1368] 27 Nov 23:24:43.900 # Server started, Redis version 2.6.12
[1368] 27 Nov 23:24:43.900 * The server is now ready to accept connections on po
rt 6379spa

使用CMD命令提示符,打开redis-cli链接redis服务器 ,也能够使用telnet客户端.net

# redis-cli -h 服务器 –p 端口 –a 密码server

redis-cli.exe -h 127.0.0.1 -p 6379

链接成功后,就可对redis数据增删改查了,如字符串操做:blog

另外开一个cmd

操做

E:\redis-2.6\bin\release\redisbin64>redis-cli.exe -h 127.0.0.1 -p 6379\
redis 127.0.0.1:6379> set test "helloworld"
OK
redis 127.0.0.1:6379> get test
"helloworld"
redis 127.0.0.1:6379>

 

java junit测试

wiki https://github.com/xetorthio/jedis/wiki/Getting-started 

相关文章
相关标签/搜索