I blogged about setting up redis before, here's a small update to the situation:
If you're running Ubuntu 9.10 or 10.04.x, the most recent release available through aptitude is 1.x. Version 1.x doesn't include many things (pubsub, etc.) which are available in 2.x. So this leaves you with two options!
Compiling redis-server is simple (aka,
make && sudo make install), a few things were missing (last time I checked):
- a start script (for any OS), though I fixed one up for Ubuntu
redis.confis not copied into
- the suggested
make testrequires TCL (Ugh, nice.)
Using a PPA!
The PPA (Personal Package Archive) concept is great. In a nutshell, it allows anyone to publish packages for various (Ubuntu) distributions. You upload a definition (sort of) and leverage Canonical's build farm, etc.. There are a few downsides to Launchpad: it's confusing, your PPA only holds the latest version of your build and overall publishing packages could be a lot easier. Which is why I'm so thankful for everyone who takes the time to publish.
Chris Lea seems to build most of the software I need. And he put all packages online in various Launchpad PPAs! Kudos to him!
Here's how you get setup!
Discover the Launchpad PPA:
server# sudo add-apt-repository ppa:chris-lea/redis-server ...
Update sources and install redis!
server# sudo apt-get update ... server# sudo apt-get install redis-server ...
Done! ;-) All things (start script, configs) included!
In case that's too much type or you're looking for some automation, I also have a chef-recipe to get this done!
The author does not allow comments to this entry