ITPub博客

首页 > Linux操作系统 > Linux操作系统 > mod_perl到底是个什么

mod_perl到底是个什么

原创 Linux操作系统 作者:bulletming 时间:2019-06-03 21:54:07 0 删除 编辑

perl.apache.org

mod_perl brings together the full power of the Perl programming language and the Apache HTTP server. You can use Perl to manage Apache, respond to requests for web pages and much more.

mod_perl  is more than CGI scripting on steroids. It is a whole new way to create dynamic content by utilizing the full power of the Apache web server to create stateful sessions, customized user authentication systems, smart proxies and much more. Yet, magically, your old CGI scripts will continue to work and work very fast indeed. With mod_perl you give up nothing and gain so much!
-- Lincoln Stein


mod_perl gives you a persistent Perl interpreter embedded in your web server. This lets you avoid the overhead of starting an external interpreter and avoids the penalty of Perl start-up time, giving you super-fast dynamic content.

As you'd expect from the Perl community, there are hundreds of modules written for mod_perl, everything from persistent database connections, to templating systems, to complete XML content delivery systems. Web sites like Slashdot and Wired Magazine use mod_perl.


我想第一段红字是很重要的,她这个避免了用perl这种script语言写cgi脚本的天生的不足:需要每次启动Perl

第二段红字更重要,在Mod_perl框架内,更好的实现了CGI原来一些东西,比如Apache::DBI,只要增加一句话,就可以让mod_perl里边的db连接变成持久的。

来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/82392/viewspace-434845/ ,如需转载,请注明出处,否则将追究法律责任。

上一篇: fsck
请登录后发表评论 登录
全部评论

注册时间:2004-05-31

  • 博文量
    121
  • 访问量
    106597