WSGI,CGI,FastCGI和mod_python之间在Python方面的区别和用途? [英] Differences and uses between WSGI, CGI, FastCGI, and mod_python in regards to Python?

查看:172
本文介绍了WSGI,CGI,FastCGI和mod_python之间在Python方面的区别和用途?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我只是想知道不同的CGI的区别和优势是什么.哪一个最适合python脚本,我该如何告诉该脚本使用什么?

I'm just wondering what the differences and advantages are for the different CGI's out there. Which one would be best for python scripts, and how would I tell the script what to use?

推荐答案

部分回答您的问题,包括scgi.

A part answer to your question, including scgi.

  • What's the difference between scgi and wsgi?
  • Is there a speed difference between WSGI and FCGI?
  • How Python web frameworks, WSGI and CGI fit together

CGI与FCGI

CGI vs FCGI

懒,而不是自己写.从维基百科: http://en.wikipedia.org/wiki/FastCGI

Lazy and not writing it on my own. From the wikipedia: http://en.wikipedia.org/wiki/FastCGI

FastCGI不会为每个请求创建一个新的进程,而是使用持久性进程来处理此类请求.可以配置多个进程,从而提高稳定性和可伸缩性.每个单独的FastCGI进程在其生命周期内都可以处理许多请求,从而避免了按请求创建和终止进程的开销

这篇关于WSGI,CGI,FastCGI和mod_python之间在Python方面的区别和用途?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆