redis学习日志1

今天开始学习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


评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值