- Neueste
- Die meisten Stimmen
- Die meisten Kommentare
Hello Varun,
To keep a Django server running on an Amazon Lightsail instance even after closing the SSH console tab, you typically need to use a process manager and potentially a tool for daemonizing the process.
The nohup command stands for "no hang up" and is used to run a command immune to hangups, with output to a non-tty. & at the end runs the command in the background.
nohup python manage.py runserver 0.0.0.0:8000 &
Please note that using nohup and & is a quick way to run a process in the background, but it's not a production-ready solution. For a production environment, you should consider using more robust process managers like Systemd and Supervisord, or deploying your Django application using application servers like Gunicorn or uWSGI behind a reverse proxy like Nginx or Apache.
Let me know if u need further assistance
Thanks
Abhinav
Relevanter Inhalt
- AWS OFFICIALAktualisiert vor einem Jahr
- AWS OFFICIALAktualisiert vor 3 Jahren
- AWS OFFICIALAktualisiert vor einem Jahr
- Welche bewährten Methoden für die Sicherung meines auf Lightsail ausgeführten Linux-Servers gibt es?AWS OFFICIALAktualisiert vor 3 Jahren