gunicorn+nginx+django

本文介绍了如何使用Django、gunicorn、nginx和supervisor进行项目部署。首先,通过gunicorn作为Django应用的WSGI服务器,然后利用nginx作为反向代理和负载均衡器,最后通过supervisor来管理和监控后台进程,确保服务的稳定运行。
摘要由CSDN通过智能技术生成
gunicorn -w 2 -b 0.0.0.0:18000 testgunicorn:app
supervisord -c /etc/supervisord.conf
supervisorctl -c /etc/supervisord.conf status
gunicorn Djanfo_project.wsgi -c gunicorn.py
./restart.sh start
supervisorctl shutdown
supervisorctl status
supervisorctl update
supervisorctl reload
supervisorctl -c /etc/supervisord.conf start program_name
supervisorctl -c /etc/supervisord.conf stop program_name
supervisorctl -c /etc/supervisord.conf restart program_name
supervisorctl -c /etc/supervisord.conf start all
supervisorctl -c /etc/supervisord.conf stop all

Django+gunicorn+nginx项目部署 - 修仙小白 - 博客园 (cnblogs.com)

使用 Supervisor 管理服务器后台进程 - 知乎 (zhihu.com)

nginx + gunicorn + supervisor 部署 django 项目 - SegmentFault 思否

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值