Skip to content

Instantly share code, notes, and snippets.

@erain
Forked from torgeir/install_redis_on_ubuntu.md
Last active October 6, 2015 01:07
Show Gist options
  • Save erain/2908735 to your computer and use it in GitHub Desktop.
Save erain/2908735 to your computer and use it in GitHub Desktop.
Redis 2.4.8 Install on Ubuntu 10.04

Installation commands:

$ wget http://redis.googlecode.com/files/redis-2.6.7.tar.gz
$ tar xvfz redis-2.6.7.tar.gz 
$ cd redis-2.6.7/
$ sudo mkdir -p /opt/redis
$ sudo make PREFIX=/opt/redis install
$ sudo cp redis.conf /opt/redis/redis.conf
$ cd /opt/redis
$ sudo mv /opt/redis/bin/* .
$ sudo rm -rf /opt/redis/bin

$ sudo useradd --system --home-dir /opt/redis/ redis
$ sudo chown -R redis:redis /opt/redis
$ sudo touch /var/log/redis.log
$ sudo chown redis:redis /var/log/redis.log

Create this upstart script at /etc/init/redis-server.conf:

Configure it, here's what I changed:

And run it!

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