在 IIS 6.0 中使用 python 提供网页服务的最佳方法是什么

发布于 2024-10-06 09:08:01 字数 329 浏览 1 评论 0原文

我有一个 IIS 6.0 Web 服务器,目前用它来提供一些普通的 ASP 页面,但我发现 ASP 有一定的限制。我经常使用 python 来完成自动化任务以及其他各种事情,并且希望开始将它与 IIS 一起使用来提供网页服务。

我的问题是:做到这一点的最佳方法是什么?我将最佳定义为最简单、最快且文档最齐全。我想避免 CGI/FastCGI,因为我被告知它们不太可取,因为每次请求页面时都必须启动 python 解释器。 (如果我错了,请纠正我)

我读过 ISAPI 和 WSGI,以及它们的各种风格和组合,并且对整个事情感到相当困惑。我想使用最新的技术,但我发现的每个教程都非常神秘。对此的良好教程将不胜感激。

I have an IIS 6.0 web server that I currently use to serve some vanilla ASP pages, and I'm finding ASP somewhat limited. I use python quite a bit for automation tasks, and various other things, and would like to begin using it with IIS to serve web pages.

My question is this: What is the best way to do this? I define best as easiest, fastest, and most well documented. I would like to avoid CGI/FastCGI, as I am told that they are less preferable due to having to start the python interpreter every time a page is requested. (Correct me if I am wrong)

I've read about ISAPI and WSGI, and various flavors and combinations thereof, and am fairly confused about the whole thing. I would like to use the latest technology, but every tutorial I have found on this is very cryptic. A good tutorial on this would be greatly appreciated.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文