Voici un petit article rapide pour installer et utiliser Redis en local sur son Mac.

Installer Redis via HomeBrew:

1
brew install redis

Démarrage de Redis au boot d’OSX:

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

Démarrer Redis via launchctl:

1
launchctl load ~/Library/LaunchAgents/homebrew.mxcl.redis.plist

Retirer le démarrage automatique de Redis au boot d’OSX:

1
launchctl unload ~/Library/LaunchAgents/homebrew.mxcl.redis.plist

Désinstaller Redis:

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

Vérifier que Redis est bien démarré:

1
2
3
redis-cli ping

# PONG

Administration GUI:

https://github.com/humante/redis-browser

Web based GUI on http://localhost:4567

1
2
3
4
5
6
# Install it with $ gem install redis-browser
# gem install redis-browser

# Run it with $ redis-browser
== Sinatra (v2.0.5) has taken the stage on 4567 for development with backup from WEBrick
INFO WEBrick::HTTPServer#start: pid=10586 port=4567