mac安裝redis

   mac安裝redis            

一、首先查看能夠按照的redis版本: brew search redisredis

 

 

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

 

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

because this is an alternate version of another formula.rest

 

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

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

 

 

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

  brew services start redis@3.2it

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

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

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

相關文章
相關標籤/搜索