Install and config Redis on Mac OS X via Homebrew
By using Homebrew, you greatly reduce the cost of setting up and configuring the development environment on Mac OS X.
Install Redis
brew install redisAfter installation, you will see some notification about some caveats on configuring. Just leave it and continue to following some tasks on this article.
Launch Redis on computer starts.
ln -sfv /usr/local/opt/redis/*.plist ~/Library/LaunchAgentsStart Redis server via launchctl.
launchctl.launchctl load ~/Library/LaunchAgents/homebrew.mxcl.redis.plistStart Redis server using configuration file.
redis-server /usr/local/etc/redis.confStop Redis on autostart on computer start.
launchctl unload ~/Library/LaunchAgents/homebrew.mxcl.redis.plistLocation of Redis configuration file.
/usr/local/etc/redis.confUninstall Redis and its files.
brew uninstall redis
rm ~/Library/LaunchAgents/homebrew.mxcl.redis.plistGet Redis package information.
brew info redisTest if Redis server is running.
redis-cli pingIf it replies
**PONG**, then it’s good to go!
Last updated