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