Django runserver permanent

后端 未结 8 482
-上瘾入骨i
-上瘾入骨i 2020-12-07 09:54

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

Thanks

8条回答
  •  眼角桃花
    2020-12-07 10:04

    For windows you can use following command

    python manage.py runserver 0.0.0.0:8000

    For ubuntu/linux use

    nohup python manage.py runserver 0.0.0.0:8000 &

    for go back from nohup command use fg command

    fg

提交回复
热议问题