Django 用户认证 用户 邮箱登录 邮箱注册 ORM or,and,not form.py FORM ModelForm Paginator 分页 HTMl JQuery 定位元素 ajax django切片 restfulapi 跨域 Ubantu Python Mysql Scrapy 爬虫 导出 Python读写 Pycharm 破解 session re sqlit3 生成式 其他 Prism 富文本 CSS Nginx 部署 请求头 抓包 协议 selenium Ubuntu 宝塔 AI Comfy-ui ollama dify open-webui Git docker
Ubuntu下后台持续运行Python程序
张建行 2022年1月9日 10:20 44 文章标签: Django Ubantu Python Mysql Scrapy 爬虫 部署

Ubuntu下后台持续运行Python程序

nohup python3 manage.py runserver 0.0.0.0:80

会产生日志信息,保存在nohuo.out文件中

最简单的命令,将命令放入括号当中,比如说:

(./test &)(python3 ha.py &)

这样就行了。不会生成日志信息