How to Install Redis on macOS El Capitan / Sierra / High Sierra / Mojave etc…
Install redis :
(macOS) 🍎 $ brew update$ brew install redis
After installation, you will probably see some notification about some warnings on configuring it’s ok. Leave it as it it, we’ll be covering it later. If you forgot to do an
Ps: brew update, it’s totally ok, it will do it automatically.
Start Redis :
$ ln -sfv /usr/local/opt/redis/*.plist ~/Library/LaunchAgents
Start Redis server via “launchctl”.
$ launchctl load ~/Library/LaunchAgents/homebrew.mxcl.redis.plist
▶️ Start Redis server using configuration file :
$ redis-server /usr/local/etc/redis.conf
⏸ Stop Redis on autostart on computer start.
$ launchctl unload ~/Library/LaunchAgents/homebrew.mxcl.redis.plist
⚙️ Location of Redis configuration file.
/usr/local/etc/redis.conf
❌ Uninstall Redis and its files.
$ brew uninstall redis
$ rm ~/Library/LaunchAgents/homebrew.mxcl.redis.plist
Get Redis package information.
$ brew info redis
Test if Redis server is running.
$ redis-cli ping
✅ If it replies “PONG”, then it’s good to go!