Installing Redis on Mac OSX

Get source and install

$ wget http://redis.googlecode.com/files/redis-2.2.12.tar.gz 
$ tar xzf redis-2.2.12.tar.gz 
$ cd redis-2.2.12 
$ make
$ make install 

And it should be up and running on:

/usr/local/bin/redis-server

For Redis server to start on boot

$ sudo nano /Library/LaunchDaemons/org.redis.redis-server.plist

Copy the  following to the the file you just created.

Create the log dir if it doesn’t exists yet

sudo mkdir /var/log/redis

Load and launch the Daemon:

sudo launchctl load /Library/LaunchDaemons/org.redis.redis-server.plist
sudo launchctl start org.redis.redis-server

Hope it helps ;)

About these ads

15 thoughts on “Installing Redis on Mac OSX

    • Very true Félix, but compiling it myself, set it to start on boot, etc… is helping me understanding how osx works. Both are valid ways to do it :)

      Thanks for the comment :)

  1. Excellent, thank you!, just wanted to mention: the last line “sudo launchctl start org.redis.redis-server.plist” didn’t work for me, but “sudo launchctl start org.redis.redis-server” did (without “.plist”). :)

    • Hi,

      I’m not sure I’m following you. You want to install it but only start it “on demand”? If this is true, just don’t do anything else after, make install.

      To manually start the server just execute
      $/usr/local/bin/redis-server

  2. brew update
    brew doctor (just in case)
    brew info redis
    MacBook-Pro-Roman:redis-2.8.17 retgoat$ brew info redis
    redis: stable 2.8.17 (bottled), HEAD

    http://redis.io/

    /usr/local/Cellar/redis/2.8.17 (10 files, 1,4M) *
    Poured from bottle
    From: https://github.com/Homebrew/homebrew/blob/master/Library/Formula/redis.rb
    ==> Caveats
    To reload redis after an upgrade:
    launchctl unload ~/Library/LaunchAgents/homebrew.mxcl.redis.plist
    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

    brew install redis

    Mac OS X Mavericks

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s