Moxley Stratton

Code Blog

Install Redis on macOS With Homebrew

Install

1
2
brew update
brew install redis

Upgrade

If Redis is already installed, you might want to upgrade:

1
brew upgrade redis

Verify

Check to see if Redis is already running:

1
redis-cli

If it’s already running, you can probably stop here.

Launch on System Boot

Check to see if it is already set up to launch on boot:

1
ls -l ~/Library/LaunchAgents | grep -i redis

Make it launch on boot:

1
ln -sfv /usr/local/opt/redis/*.plist ~/Library/LaunchAgents

Management

Redis can be started and stopped with these two commands:

1
2
brew services start redis
brew services stop redis

Comments