zl程序教程

您现在的位置是:首页 >  后端

当前栏目

在后台运行 django的基本方法

django后台方法 运行 基本
2023-09-11 14:17:11 时间

在后台运行 django:

nohup python manage.py runserver 0.0.0.0:9000 &
ps:&可以不写,这样启动测试服务器后,就可以常驻后台运行了。

 

启动程序并输入到指定日志:

nohup python manage.py runserver 0.0.0.0:9090 > /home/stat.log 2&>1 &

查看后台某个进程:

ps -ef|grep "python"

杀死进程:

kill -9 34353

原文链接:https://blog.csdn.net/hellokandy/article/details/95944001