服务器上启动程序 cd web_publicity #先到这个文件夹下 在输入 这个命令 :nohup python3 manage.py runserver 0.0.0.0:8000 >log.txt 2>&1 & 就可以运行服务器上的代码了。