redis 安装测试
參考https://my.oschina.net/lujianing/blog/204103(Windows下Redis的安裝使用)
發現3.0版本需要通過vs去編譯。機器沒裝編譯器,只好用了2.6
https://github.com/MSOpenTech/redis/tree/2.6
在這個路徑https://github.com/MSOpenTech/redis/tree/2.6/bin/release有執行文件。
下載,解壓之后,點擊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 6379
使用CMD命令提示符,打開redis-cli連接redis服務器 ,也可以使用telnet客戶端
# redis-cli -h 服務器 –p 端口 –a 密碼
redis-cli.exe -h 127.0.0.1 -p 6379連接成功后,就可對redis數據增刪改查了,如字符串操作:
另外開一個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?
?
?
轉載于:https://my.oschina.net/liangzhenghui/blog/795120
總結
以上是生活随笔為你收集整理的redis 安装测试的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: Authentication Error
- 下一篇: cloub spring 拦截器_Spr