001-window版redis安裝

來源:互聯網
上載者:User

標籤:rtu   執行個體   log   des   erb   led   ash   安裝   ref   

一、參考地址

官方地址:https://redis.io/ 

windows版本【學習使用】:https://github.com/MicrosoftArchive/redis

二、windows版redis使用

1.解壓目錄

2.在cmd下進入檔案夾:

  redis-server redis.windows.conf

  

如果啟動失敗,可能問題

  提示:QForkMasterInit: system error caught. error code=0x000005af, message=VirtualAllocEx failed.: unknown error 。原因是記憶體配置的問題。解決方案有兩個

  第一:啟動的時候使用--maxmemory 命令限制Redis的記憶體:

    redis-server redis.windows.conf --maxmemory 200m

  第二種方法就是修改設定檔redis.windows.conf :

    maxmemory 209715200  【單位是位元組】後再運行:redis-server redis.windows.conf

  用戶端:redis-cli.exe,運行查看即可

3.redis服務

redis-server.exe --service-install redis.windows.conf --loglevel verboseredis-server --service-startredis-server --service-stop

4.啟動多個執行個體

redis-server --service-install –service-name redisService1 –port 10001redis-server --service-start –service-name redisService1redis-server --service-install –service-name redisService2 –port 10002redis-server --service-start –service-name redisService2redis-server --service-install –service-name redisService3 –port 10003redis-server --service-start –service-name redisService3

5.卸載

redis-server --service-uninstall

6.案頭端

:https://redisdesktop.com/download

 

001-window版redis安裝

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在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.