python IIS下如何搭建Python WSGI服务器?
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/47253/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
How do you set up a Python WSGI server under IIS?
提问by minty
I work in a Windows environment and would prefer to deploy code to IIS. At the same time I would like to code in Python.
我在 Windows 环境中工作,更喜欢将代码部署到 IIS。同时我想用Python编写代码。
Having read that IIS can run fastCGI application, I went to the IIS site where it describes in detail how to get PHP up and running but not much about anything else.
读到 IIS 可以运行 fastCGI 应用程序后,我访问了 IIS 站点,该站点详细描述了如何启动和运行 PHP,但对其他内容没有太多介绍。
Does anyone have experience getting a Pythonframework running under IISusing something other that plain old CGI?
有没有人有过使用其他普通的旧 CGI 来让Python框架在 IIS 下运行的经验?
If so can you explain to direct me to some instructions on setting this up?
如果是这样,您能否解释一下以指导我了解有关设置的一些说明?
采纳答案by John Millikin
There shouldn't be any need to use FastCGI. There exists a ISAPI extension for WSGI.
回答by NTL
Microsoft itself develops wfastcgi(source code) to host Python code on IIS.
回答by Aravind
We can use iiswsgi framework to setup WSGI over IIS since it is compatible with IIS web server's FastCGI protocol.It's bundled with distutils for building, distribution and installing packages with the help of Microsoft Web Deploy and Web Platform Installer.
我们可以使用 iiswsgi 框架在 IIS 上设置 WSGI,因为它与 IIS Web 服务器的 FastCGI 协议兼容。它与 distutils 捆绑在一起,用于在 Microsoft Web Deploy 和 Web Platform Installer 的帮助下构建、分发和安装包。
For more info refer the following link:
有关更多信息,请参阅以下链接: