Skip to content

Instantly share code, notes, and snippets.

@cuonggt
Last active October 2, 2015 01:55
Show Gist options
  • Save cuonggt/6deac4841e5df678b24d to your computer and use it in GitHub Desktop.
Save cuonggt/6deac4841e5df678b24d to your computer and use it in GitHub Desktop.
Install Redis Server

Install Redis Server

Install

brew install redis

To have launchd start redis at login:

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

Then to load redis now:

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

Or, if you don't want/need launchctl, you can just run:

redis-server /usr/local/etc/redis.conf

Test

redis-cli
set foo bar
get foo ==> “bar"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment