Heim  >  Fragen und Antworten  >  Hauptteil

nginx - Warum kann Gunicorn Wsgi nicht direkt verarbeiten?

Laut der Konfiguration auf Nginx handelt es sich um Proxy_Pass und nicht um UWSGI_Pass. Bedeutet das also nicht, dass der Upstream zu Gunicorn auch im HTTP-Format vorliegt? Dann wird Gunicorn in WSGI konvertiert, um die Anwendung zu starten?

習慣沉默習慣沉默2713 Tage vor549

Antworte allen(1)Ich werde antworten

  • 我想大声告诉你

    我想大声告诉你2017-05-16 17:25:09

    我来自问自答,经过一天的研究 原来是这样的 wsgi是一个编程标准 而不是一个socket协议 这不同于fastcgi 它是一个通信协议
    wsgi指定了一个有两个参数的函数作为接口方法environ, startresponse
    gunicorn是一个能够调用符合wsgi标准程序的webserver 如果不想使用它可以以mod_wsgi+Python app的方式替代 但是性能可能不是那么的好 而且modwsgi有不少问题 没人维护

    另外说下uwsgi是一个基于wsgi的server 这几个东西容易搞在一起

    Antwort
    0
  • StornierenAntwort