Home > Development, Install, Redis > Installing Redis on Mac OS X

Installing Redis on Mac OS X

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 ;)

Advertisement
Categories: Development, Install, Redis
  1. July 23, 2011 at 10:25 pm | #1

    Well that or you could use homebrew which will keep your redis version updated.

    • July 24, 2011 at 6:57 pm | #2

      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 :)

  2. January 4, 2012 at 4:39 pm | #3

    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”). :)

    • January 19, 2012 at 1:15 am | #4

      Hi, thank you for the comment and the correction. Duly noted and updated.

      Thank you.

  1. No trackbacks yet.

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 )

Connecting to %s

Follow

Get every new post delivered to your Inbox.