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!