$
brew install redis
$
ln -sfv /usr/local/opt/redis/*.plist ~/Library/LaunchAgents
$
launchctl load ~/Library/LaunchAgents/homebrew.mxcl.redis.plist
homebrew.mxcl.redis.plist contains reference to redis.conf file location: /usr/local/etc/redis.conf
$
redis-server /usr/local/etc/redis.conf
$
redis-cli ping
$
brew info redis
$
launchctl unload ~/Library/LaunchAgents/homebrew.mxcl.redis.plist
#!/bin/bash
brew install redis #homebrew install
ln -sfv /usr/local/opt/redis/*.plist ~/Library/LaunchAgent #Enable Redis autostart
redis-server /usr/local/etc/redis.conf #Start Redis server using configuration file, Ctrl+C to stop
redis-cli ping #check if running -> shoud return 'PONG'
launchctl unload ~/Library/LaunchAgents/homebrew.mxcl.redis.plist # Disable Redis autostart