使用Homebrew安装命令
brew install redis
安装成功后
==> Pouring redis--6.2.5.catalina.bottle.tar.gz==> CaveatsTo start redis:brew services start redisOr, if you don't want/need a background service you can just run:/usr/local/opt/redis/bin/redis-server /usr/local/etc/redis.conf==> Summary🍺 /usr/local/Cellar/redis/6.2.5: 14 files, 2.0MBRemoving: /usr/local/Cellar/redis/6.2.4... (14 files, 2.0MB)Removing: /Users/wuxiao/Library/Caches/Homebrew/redis--6.2.4... (879.3KB)
查看安装及配置文件位置
/usr/local/Cellar/
路径下redis.conf
存放在/usr/local/etc
路径下启动redis服务
//方式一:使用brew帮助我们启动软件brew services start redis//方式二redis-server /usr/local/etc/redis.conf