mac安装redis

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

mac安装redis

 

 

2、选择合适的版本进行安装: brew install redis@3.2

mac安装redis

 

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

mac安装redis

 

 

 

 

上一篇:Appium Mac环境搭建


下一篇:Mac brew换源