Mac Brew安装 Redis

更新Brew并安装Redis

brew update
brew install redis

启动Redis

brew services start redis

如果你想通过自定义配置文件启动

redis-server /usr/local/etc/redis.conf

测试redis是否启动成功

redis-cli ping

如果你看到pong,这就是安装好了.

卸载Redis

brew uninstall redis
rm ~/Library/LaunchAgents/homebrew.mxcl.redis.plist

你可能感兴趣的:(Mac Brew安装 Redis)