Sign up ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

I run django server using

/opt/python27/bin/python runserver

But the command prompt says

Quit the server with CONTROL-C.

I want to know that can i keep it running all the time. Anything wrong with that??. I was thinking of running in background and then do my usual stuff

share|improve this question

migrated from May 24 '11 at 12:57

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

If you start a task from the commandline you can (nearly) always interrupt it with Ctr-C. – duenni May 24 '11 at 13:03

2 Answers 2

up vote 3 down vote accepted

You can run it all the time. You can further append a "&" at the end of the command so to puts the process in the background. Thus use this instead:

/opt/python27/bin/python runserver &
share|improve this answer
thank buddy i will try – Mirror51 May 24 '11 at 12:36
Yes. But this is a terrible, terrible way to run a server. Use Apache and mod_wsgi. Don't think of this as anything but a way to test something quickly. – S.Lott May 24 '11 at 14:36

Yes you can keep it running all the time. Don't run it as a foreground process in the terminal, run as a background process.

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.