简体   繁体   English

wsgi,python_wsgi,wsgi服务器和mod_wsgi有什么区别?

[英]what is the difference between wsgi, python_wsgi, wsgi server and mod_wsgi?

I am very confused in below terms, 1. wsgi 2. python_wsgi 3. wsgi server 4. mod_wsgi 5. python web server gateway interface(PEP3333) 我对以下术语感到非常困惑:1. wsgi 2. python_wsgi 3. wsgi服务器4. mod_wsgi 5. python Web服务器网关接口(PEP3333)

what are these for? 这些是做什么用的? I know wsgi is just an interface or a specification between app and server but why these so many terms are used in docs. 我知道wsgi只是应用程序和服务器之间的接口或规范,但是为什么在文档中使用了这么多的术语。 How I am gonna use this with apache? 我要如何在apache上使用它? What is wsgi server for? wsgi服务器有什么用? This is pretty confusing. 这很令人困惑。 Some simple and detailed explaination would be helpful. 一些简单而详细的解释将很有帮助。

Thanks 谢谢

WSGI stands for Web Server Gateway Interface WSGI代表Web服务器网关接口

It describes the way a server such as Apache communicates with a python program (web application). 它描述了诸如Apache之类的服务器与python程序(Web应用程序)进行通信的方式。

A WSGI server is a server that complies with the WSGI standard. WSGI服务器是符合WSGI标准的服务器。

Mod_WSGI is an Apache module that supports the WSGI standard and thus allows Apache to be a WSGI server. Mod_WSGI是支持WSGI标准的Apache模块,因此允许Apache成为WSGI服务器。 It allows you to host python programs through Apache. 它允许您通过Apache托管python程序。

PEP3333 is where the technical aspects of WSGI standard are defined. 在PEP3333中定义了WSGI标准的技术方面。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM