Installing Redis on Mac OSX

Get source and install

$ wget 
$ tar xzf redis-2.2.12.tar.gz 
$ cd redis-2.2.12 
$ make
$ make install 

And it should be up and running on:


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

11 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

Leave a Reply

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

You are commenting using your 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