Skip to content

Instantly share code, notes, and snippets.

@mwhite

mwhite/redis.md Secret

Created October 17, 2013 16:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mwhite/c0381c5236855993572c to your computer and use it in GitHub Desktop.
Save mwhite/c0381c5236855993572c to your computer and use it in GitHub Desktop.
Redis installation notes (from Dan)

Installing redis

Likewise, an ubuntu 12.04 machine, the included redis is sufficient for our needs.

sudo apt-get install redis-server
/etc/init.d/redis-server

Building redis from source

For developer/test machines where redis install may not be easily available, here's how to build it yourself.

Download the latest stable redis. untar it

make; make install

For ubuntu upstart, here's an upstart script to use - this is the default install location of the setup:

description "redis server"
start on runlevel [23]
stop on shutdown
exec sudo -u redis /usr/local/bin/redis-server /etc/redis.conf
respawn

After that, you can just do an

initctl reload-configuration
start redis

Example /etc/redis.conf

Why Redis

Redis, like memcached is a key-value store. It provides us additional flexibility such as larger max values for serving/transferring large files as well as wildcard and set operations on keys. In reality it can act as a drop-in replacement for memcached. In the future the memcached requirement may be dropped in favor of exclusive redis use.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment