您的位置:首页 > 数据库 > Redis

[Redis]windows下redis安装

2014-05-02 00:13 429 查看
官方的下载地址是: http://redis.io/download
在win64一栏中可以看到redis原本是没有windows版本的,windows版本是Microsoft Open Tech团队开的给出了一个github的链接地址: https://github.com/MSOpenTech/redis
下载:
https://github.com/MSOpenTech/redis 页面的右下角有 Download Zip的字样,点击之后就可以下载源码的zip包了。然后就是解压: 这里解压的目录是D:\devsofts\redis启动的程序在子目录 D:\devsofts\redis\bin\release 下,一个是32位,一个是64位的。
配置和启动:在dos命令行环境下:
D:\devsofts\redis>D:\devsofts\redis\bin\release\redis-server.exe redis.conf
_._
_.-``__ ''-._
_.-``    `.  `_.  ''-._           Redis 2.6.12 (00000000/0) 64 bit
.-`` .-```.  ```\/    _.,_ ''-._
(    '      ,       .-`  | `,    )     Running instand 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
命令行所在的目录是redis的根目录启动的命令是bin下exe命令,这里可以把
D:\devsofts\redis\bin\release\
添加到系统路径中去。
测试:使用客户端程序访问:
D:\devsofts\redis>D:\devsofts\redis\bin\release\redis-cli.exe -h 192.168.0.106-
p 6379
redis 192.168.0.106:6379> setadmin orangleliu
OK
redis 192.168.0.106:6379> getadmin
"orangleliu"

后面开始学习简单的使用,python连接redis的操作。

本文出自 “orangleliu笔记本” 博客,请务必保留此出处http://orangleliu.blog.51cto.com/2554001/1405428
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: