Install Redis 2.6 as a Service on Ubuntu

This is a complete guide to installing and configuring Redis 2.6 as a service on Ubuntu. While these steps have been tested on Ubuntu Server 12.04, they should apply in general to other versions as well. Also, for a tutorial on installing Redis 2.6 as a service on Amazon EC2 Linux/CentOS and Windows, please click here and here respectively. Another tutorial on installing and using the C- client library for Redis, Hiredis is provided here.

Step 6: You mention pulling the github startup script, but if you are in the ./src folder, the redis-server binary is already there, so it creates redis-server.1 (this is ok). Just keep following the steps as list and it will still work ok, just be sure to copy redis-server.1 instead.

http://twitter.com/tommychheng tommy chheng

Why put the redis-cli in the /etc/init.d/ directory? init.d is meant for services.

Henrique

In Step 7: nano /etc/init.d/redis-server

How exactly do you change this settings? Isn’t redis-server a binary file?

Henrique

Never mind, it’s referencing the downloaded script, not the binary redis-server.

http://twitter.com/glarrain German Larrain M

Readers: replace all ‘sudo /etc/init.d/redis-server’ with ‘sudo service redis-server’. That’s the proper way in the last versions of Ubuntu (at least since 12.04).

http://twitter.com/n_zee Nazim Zeeshan

Will this work on Ubuntu EC2?

http://jamie.macisa.ac/ Jamie MacIsaac

Just installed using 2.6.9 on Ubuntu 12.04 rather than redis-2.6.0-rc3 – seems to work just fine.