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

redis--windows下 安装配置

2015-07-24 16:12 716 查看
redis官方支持linux,不支持windows,只是 Microsoft Open Tech group
在 GitHub上开发了一个Win64的版本。

1、Windows环境下 安装redis

1)先要下载redis包https://github.com/MSOpenTech/redis

解压缩后有下面的文件

redis-benchmark.exe         #基准测试  
redis-check-aof.exe         # aof  
redis-check-dump.exe        # dump  
redis-cli.exe               # 客户端  
redis-server.exe            # 服务器  
redis.windows.conf          # 配置文件

2)启动

redis-server redis.windows.conf

E:\xuexi\redis\redis64-2.8.19>redis-server redis.windows.conf                                    

                _._                                                                                                                               

           _.-``__ ''-._                                                                                                                      

      _.-``    `.  `_.  ''-._           Redis 2.8.19 (00000000/0) 64 bit                                           

  .-`` .-```.  ```\/    _.,_ ''-._                                                                                                            

 (    '      ,       .-`  | `,    )     Running in stand alone mode                                                     

 |`-._`-...-` __...-.``-._|'` _.-'|     Port: 6379                                                                                

 |    `-._   `._    /     _.-'    |     PID: 2184                                                                                      

  `-._    `-._  `-./  _.-'    _.-'                                                                                                            

 |`-._`-._    `-.__.-'    _.-'_.-'|                                                                                                        

 |    `-._`-._        _.-'_.-'    |           http://redis.io                                                                         

  `-._    `-._`-.__.-'_.-'    _.-'                                                                                                         

 |`-._`-._    `-.__.-'    _.-'_.-'|                                                                                                        

 |    `-._`-._        _.-'_.-'    |                                                                                                           

  `-._    `-._`-.__.-'_.-'    _.-'                                                                                                         

      `-._    `-.__.-'    _.-'                                                                                                                

          `-._        _.-'                                                                                                                       

              `-.__.-'                                                                                                                           

[2184] 24 Jul 15:47:31.092 # Server started, Redis version 2.8.19                               

[2184] 24 Jul 15:47:31.092 * The server is now ready to accept connections on po 

rt 6379                                                                                                                                        

出现上面的界面,启动成功。

3)进行测试,

A:可以使用redis自带的工具redis-cli.exe。打开直接(set 变量名  变量值/get 变量名)。

B:在cmd中 telnet ip port,在进入的界面,使用
(set 变量名  变量值/get  变量名)进行简单的测试。

2、配置

所有的配置信息在redis.windows.conf中,有需要可以根据实际情况修改。

redis学习站点:http://www.yiibai.com/redis/redis_data_types.html
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: