1. 程式人生 > >windows redis安裝與使用

windows redis安裝與使用

下載Windows版本的Redis

1.開啟官網http://redis.io/點選Download

2.往下拉,找到Windows,

   由圖片中的文字可以看出Redis專案不正式支援Windows。 但是,Microsoft開放技術小組開發和維護這個Windows埠針對Win64。 

 

     所以我們點選Learn more

3.點選後,會發現其實是跳轉到了微軟的GitHub地址 https://github.com/MSOpenTech/redis/releases

   然後選擇你喜歡的版本zip或msi下載

4.安裝後,開啟安裝目錄

   

     雙擊redis-server.exe啟動redis伺服器,雙擊redis-cli.exe開啟redis客戶端(用來執行命令,訪問伺服器的)

    

命令列啟動太麻煩  將redis新增到服務啟動

windows下的redis服務安裝
redis-server --service-install redis.conf

redis-server --service-uninstall

 

注意windows的redis,在使用存在一些不穩定下,只作為測試開發。尤其是在一些新版本中。如果出現問題

,就重啟redis服務,再重新連線使用即可。