使用homebrew安装Redis
1、安装homebrew,打开终端输入以下命令:
/bin/zsh -c "$(curl -fsSL https://gitee.com/cunkai/HomebrewCN/raw/master/Homebrew.sh)"
2、使用homebrew安装命令
brew install redis

3、启动redis服务
//方式一:使用brew帮助我们启动软件
brew services start redis
//方式二
redis-server /usr/local/etc/redis.conf
redis-server

4、查看redis服务进程
ps axu | grep redis
本文介绍了如何通过Homebrew这个MacOS的包管理器来安装Redis,包括安装命令、启动服务的两种方法以及检查服务是否运行的步骤,是针对Mac用户快速上手Redis的指南。
745

被折叠的 条评论
为什么被折叠?



