Mac环境redis的安装及启动

1.用HomeBrew安装

brew search redis(可以不执行)
brew install redis
source /etc/bashrc

然后进入redis文件夹下
启动redis

./redis-server
2.更新redis
brew upgrade redis
3.启动redis服务(查看端口、查看服务)
brew services start redis
lsof -i tcp:6379
brew services list

参考:

https://jingyan.baidu.com/album/d5a880ebdbed2113f047cc4e.html?picindex=1

你可能感兴趣的:(Mac环境redis的安装及启动)