mac安裝redis


1、首先查看可以按照的redis版本: brew search redis

 

 

2、選擇合適的版本進行安裝: brew install redis@3.2

 

redis@3.2 is keg-only, which means it was not symlinked into /usr/local,

because this is an alternate version of another formula.

 

If you need to have redis@3.2 first in your PATH, run:

  echo 'export PATH="/usr/local/opt/redis@3.2/bin:$PATH"' >> ~/.profile

 

 

To have launchd start redis@3.2 now and restart at login:

  brew services start redis@3.2

Or, if you don't want/need a background service you can just run:

  /usr/local/opt/redis@3.2/bin/redis-server /usr/local/etc/redis.conf 

3.啟動服務:brew services start redis@3.2

 

 

 

 


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM