mac安装redis

2021/4/23 19:30:14

本文主要是介绍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

 

 

 

 



这篇关于mac安装redis的文章就介绍到这儿,希望我们推荐的文章对大家有所帮助,也希望大家多多支持为之网!


扫一扫关注最新编程教程