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
Well that or you could use homebrew which will keep your redis version updated.
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
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, thank you for the comment and the correction. Duly noted and updated.
Thank you.