• 请不要在回答技术问题时复制粘贴 AI 生成的内容
tomnee
V2EX  ›  程序员

部署flask的服务器上 apache 和 nginx 共存, 怎样处理比较好?

  •  
  •   tomnee · Jan 15, 2014 · 4686 views
    This topic created in 4586 days ago, the information mentioned may be changed or developed.
    查到比较可行的部署flask 是 gunicorn + supervisor + nginx, 但原服务器已经已apache为主。怎样做会比较优雅和有效?
    4 replies    1970-01-01 08:00:00 +08:00
    shiny
        1
    shiny  
    PRO
       Jan 15, 2014
    既然已经 apache 为主呢,为什么一定要 nginx 捏?
    Kvm
        2
    Kvm  
       Jan 15, 2014
    把apache的端口调整下
    然后nginx分配80 让nginx继续跑proxy
    clino
        3
    clino  
       Jan 15, 2014
    apache也可以做反向代理啊, 可以 gunicorn+supervisor+apache 这样用
    不过nginx性能会更好吧?
    notedit
        4
    notedit  
       Jan 15, 2014
    gunicorn是一个服务器 nginx只做代理转发

    gunicorn和apache的配置在这里 http://stackoverflow.com/questions/12144681/deploy-django-with-gunicorn-and-apache
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   3024 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 25ms · UTC 13:26 · PVG 21:26 · LAX 06:26 · JFK 09:26
    ♥ Do have faith in what you're doing.