Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

On my (new) mac I can use spork and redis seems to be already running.

However on my Ubuntu system (11.10) I get

Connection refused - 
Unable to connect to Redis on localhost:6379 (Errno::ECONNREFUSED)

I can get around this with redis-server which start redis as a foreground process in that window.

How can I have redis-server always be running on my Ubuntu ? i.e. through reboots

I thought about putting redis-server in my .bashrc but I don't want a new redis server started with each new terminal window. Could it go in my .bash_login ?

share|improve this question

migrated from Aug 23 '12 at 6:08

This question came from our site for professional and enthusiast programmers.

Have you tried running – Mladen Jablanović Aug 20 '12 at 13:00
up vote 3 down vote accepted

The trick is to put an init script in your /etc/init.d/ and then use the update-rc.d command to enable/disable it. I use a modified version of this init script. Also take a look at this post. Hope it points you to the right direction.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.