redis在windows10上跑起来
生活随笔
收集整理的這篇文章主要介紹了
redis在windows10上跑起来
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
redis在windows10上跑起來 原文:redis在windows10上跑起來從開始搜索打開或關閉Windows功能(類型turn) 選擇適用于Linux的Windows子系統(測試版) 一旦安裝,您可以通過從Windows命令提示符鍵入bash在Ubuntu上運行bash?。要安裝最新版本的Redis,我們需要使用一個存儲庫來維護Ubuntu和Debian服務器的最新軟件包,例如https://www.dotdeb.org,您可以通過以下方式添加到Ubuntu的apt-get源: $ echo deb http://packages.dotdeb.org wheezy all >> dotdeb.org.list
$ echo deb-src http://packages.dotdeb.org wheezy all >> dotdeb.org.list
$ sudo mv dotdeb.org.list /etc/apt/sources.list.d
$ wget -q -O - http://www.dotdeb.org/dotdeb.gpg | sudo apt-key add -$ sudo apt-get update
$ sudo apt-get install redis-server 啟動redis: $ redis-server --daemonize yes 可以使用redis客戶端: $ redis-cli
$ 127.0.0.1:6379> SET foo bar
OK
$ 127.0.0.1:6379> GET foo
"bar"
posted on 2018-11-06 10:27 NET未來之路 閱讀(...) 評論(...) 編輯 收藏
今天,開始學習redis,發現大多數redis都是在Linux上面運行的,可是我想把它放到windows上面運行,經過查找資料,在GitHub上面發現了一篇關于如何在window上讓redis跑起來的文章,https://github.com/ServiceStack/redis-windows?這是網址,這篇文章提供了3種方法,用你喜歡使用的。
選項1)在Windows上的Ubuntu上安裝Redis
在Windows上,安裝Ubuntu上的Bash,這是首選方法。
選項2)使用Vagrant運行最新版本的Redis
1、在Windows上安裝Vagrant 2、下載vargrant-redis.zip vagrant配置 wget https://raw.github.com/ServiceStack/redis-windows/master/downloads/vagrant-redis.zip 3、vagrant-redis.zip 提取到任何文件夾都可以(在這里我們提取到)c:\vagrant-redis 4、啟動virtual Box VM vagrant up cd c:\vagrant-redis vagrant up 這將在Virtual Box內啟動一個新的Ubuntu VM實例,它將自動安裝并啟動最新的穩定版本的redis。選項3)運行Microsoft的本地端口Redis
這個是我在使用的,比較方便。 1、下載當前版本64位windows端口redis wget https://github.com/ServiceStack/redis-windows/raw/master/downloads/redis-latest.zip 2、提取文件到C:\redis 3、使用本地配置運行redis-server.exe cd c:\redis redis-server.exe redis.windows.conf 4、運行redis客戶端 cd c:\redis redis-cli.exe 5、開始redis進行工作吧! redis 127.0.0.1:6379> SET foo bar OK redis 127.0.0.1:6379> KEYS * 1) "foo" redis 127.0.0.1:6379> GET foo "bar" redis 127.0.0.1:6379>posted on 2018-11-06 10:27 NET未來之路 閱讀(...) 評論(...) 編輯 收藏
轉載于:https://www.cnblogs.com/lonelyxmas/p/9913768.html
總結
以上是生活随笔為你收集整理的redis在windows10上跑起来的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 谈一谈flex布局使用中碰到的一些问题
- 下一篇: 小程序动画Animation,高度增加动