查到比较可行的部署flask 是 gunicorn + supervisor + nginx, 但原服务器已经已apache为主。怎样做会比较优雅和有效?
1
shiny PRO 既然已经 apache 为主呢,为什么一定要 nginx 捏?
|
2
Kvm Jan 15, 2014
把apache的端口调整下
然后nginx分配80 让nginx继续跑proxy |
3
clino Jan 15, 2014
apache也可以做反向代理啊, 可以 gunicorn+supervisor+apache 这样用
不过nginx性能会更好吧? |
4
notedit Jan 15, 2014
gunicorn是一个服务器 nginx只做代理转发
gunicorn和apache的配置在这里 http://stackoverflow.com/questions/12144681/deploy-django-with-gunicorn-and-apache |