[Redis]windows下redis安裝

來源:互聯網
上載者:User

標籤:安裝   windows   redis   

官方的是: 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 port 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 6379redis 192.168.0.106:6379> setadmin orangleliuOKredis 192.168.0.106:6379> getadmin"orangleliu"


後面開始學習簡單的使用,python串連redis的操作。


本文出自 “orangleliu筆記本” 部落格,請務必保留此出處http://orangleliu.blog.51cto.com/2554001/1405428

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.