Django runserver永久 [英] Django runserver permanent

查看:145
本文介绍了Django runserver永久的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何使开发服务器从django运行永久?所以当我退出shell时它不会停止。



谢谢

解决方案>

另一个简单的方法是执行:

  [user @ host] $ screen 
[ user @ host] $ python manage.py runserver 0.0.0.0:8000

现在按 Ctrl + A 然后按 d 退出此屏幕。



这将在屏幕中创建服务器,然后将其分离。这样你可以简单地回到这里并键入:

  [user @ host] $ screen -r 

,您可以再次控制服务器,看看发生了什么。


How can I make the development server from django running permanent? So that it does't stop when I quit the shell.

Thanks

解决方案

another easy way to do this is to run:

[user@host]$screen
[user@host]$python manage.py runserver 0.0.0.0:8000

Now press Ctrl+A and then press d to exit from this screen.

This creates the server in a screen and then detaches it. This way you can simply go back in and type:

[user@host]$screen -r

and you can take control of the server again and see whats going on.

这篇关于Django runserver永久的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆