ViewertViewert

Redis OSX

By kerxon · · 1 min read

https://redis.io/

$ brew install redis

To have launchd start redis now and restart at login:

Launch Redis on computer starts.

 $ brew services start redis

Or, if you don't want/need a background service you can just run:

$ redis-server /opt/homebrew/etc/redis.conf

Uninstall Redis and its files.

$ brew uninstall redis 

Warning: The following may be redis configuration files and have not been removed!

If desired, remove them manually with rm -rf:

/opt/homebrew/etc/redis-sentinel.conf

/opt/homebrew/etc/redis.conf

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!

To have launchd start redis now and restart at login:

$ brew services start redis

to stop it, just run:

$ brew services stop redis