Date
Jul. 19th, 2024
 
2024年 6月 14日

Post: Keep Django server running after close ssh session

Keep Django server running after close ssh session

Published 12:01 Jan 02, 2021.

Created by @ezra. Categorized in #Programming, and tagged as #Python, #UNIX/Linux.

Source format: Markdown

Table of Content

Meet screen

Connect through ssh, start screen. This open a virtual console emulator on top of the one provided by ssh. Start your server there.

Then press Ctrl-a, then d. This detaches the screen session, keeping it running in the background.

Quit screens

killall screen
screen -list
screen -S SCREEN_SESSION_ID -X quit

Django runserver in screen

screen -d -m python3 path/to/manage.py runserver 0.0.0.0:80
Pinned Message
HOTODOGO
I'm looking for a SOFTWARE PROJECT DIRECTOR / SOFTWARE R&D DIRECTOR position in a fresh and dynamic company. I would like to gain the right experience and extend my skills while working in great teams and big projects.
Feel free to contact me.
For more information, please view online résumé or download PDF
本人正在寻求任职 软件项目经理 / 软件技术经理 岗位的机会, 希望加⼊某个新鲜⽽充满活⼒的公司。
如有意向请随时 与我联系
更多信息请 查阅在线简历下载 PDF