日期:2014-05-16 浏览次数:20493 次
今天开始学习redis,想找个地方记录自己的学习日志,突然想到了好久未用的csdn
1.下载redis
https://github.com/dmajkic/redis/downloads
redis-2.4.5-win32-win64.zip — Redis-2.4.5 - Windows binaries (win32 and x64 included)
2.解压文件到安装目录
(本人安装目录)d:/redis
目录中分32bit,64bit.按自己环境选择,我的是win64
3.启动redis
打开命令行
进入安装目录:
d:/redis/64bit
输入命令:redis-server.exe redis.conf
输出如下:
D:\redis\64bit>redis-server.exe redis.conf
[1580] 29 Jul 21:10:00 * Server started, Redis version 2.4.5
[1580] 29 Jul 21:10:00 # Open data file dump.rdb: No such file or directory
[1580] 29 Jul 21:10:01 * The server is now ready to accept connections on port 6379
[1580] 29 Jul 21:10:02 - 0 clients connected (0 slaves), 1179896 bytes in use
[1580] 29 Jul 21:10:07 - 0 clients connected (0 slaves), 1179896 bytes in use
[1580] 29 Jul 21:10:12 - 0 clients connected (0 slaves), 1179896 bytes in use
[1580] 29 Jul 21:10:17 - 0 clients connected (0 slaves), 1179896 bytes in use
[1580] 29 Jul 21:10:22 - 0 clients connected (0 slaves), 1179896 bytes in use
[1580] 29 Jul 21:10:27 - 0 clients connected (0 slaves), 1179896 bytes in use
[1580] 29 Jul 21:10:32 - 0 clients connected (0 slaves), 1179896 bytes in use
[1580] 29 Jul 21:10:37 - 0 clients connected (0 slaves), 1179896 bytes in use
[1580] 29 Jul 21:10:42 - 0 clients connected (0 slaves), 1179896 bytes in use
[1580] 29 Jul 21:10:47 - 0 clients connected (0 slaves), 1179896 bytes in use
4.设置端口
新开命令行
进入安装目录:
输入命令:redis-cli.exe -h localhost -p 6379
输出如下:
D:\redis\64bit>redis-cli.exe -h localhost -p 6379
redis localhost:6379>
至此,windows下的redis安装已经完成
参考地址:
http://zheng12tian.iteye.com/blog/1471726
追加个redis中文手册地址,方便学习^_^
http://redis.readthedocs.org/en/2.4/index.html