⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 1250.html

📁 著名的linux英雄站点的文档打包
💻 HTML
📖 第 1 页 / 共 3 页
字号:
          <TD><IMG height=1 src="images/spacer.gif" tppabs="http://www.linuxhero.com/docs/images/spacer.gif" width=76 
border=0></TD>
          <TD><IMG height=1 src="images/spacer.gif" tppabs="http://www.linuxhero.com/docs/images/spacer.gif" width=100 
          border=0></TD>
          <TD><IMG height=1 src="images/spacer.gif" tppabs="http://www.linuxhero.com/docs/images/spacer.gif" width=98 
border=0></TD>
          <TD><IMG height=1 src="images/spacer.gif" tppabs="http://www.linuxhero.com/docs/images/spacer.gif" width=79 
border=0></TD>
          <TD><IMG height=1 src="images/spacer.gif" tppabs="http://www.linuxhero.com/docs/images/spacer.gif" width=103 
          border=0></TD>
          <TD><IMG height=1 src="images/spacer.gif" tppabs="http://www.linuxhero.com/docs/images/spacer.gif" width=26 
border=0></TD>
          <TD><IMG height=1 src="images/spacer.gif" tppabs="http://www.linuxhero.com/docs/images/spacer.gif" width=1 
        border=0></TD></TR>
        <TR>
          <TD colSpan=3><A title=linux知识宝库 
            href="index.html" tppabs="http://www.linuxhero.com/docs/index.html"><IMG height=83 
            src="images/header_r1_c1.gif" tppabs="http://www.linuxhero.com/docs/images/header_r1_c1.gif" width=472 border=0 
            name=header_r1_c1></A></TD>
            <TD colSpan=3>
              <form action="http://www.linuxhero.com/docs/search.html" method=get>
                <table 
                        style="BORDER-RIGHT: #c4c4c4 1px solid; BORDER-TOP: #c4c4c4 1px solid; BORDER-LEFT: #c4c4c4 1px solid; BORDER-BOTTOM: #c4c4c4 1px solid" 
                        cellspacing=0 cellpadding=3 width="95%" border=0 align="center">
                  <tbody> 
                  <tr> 
                    <td noWrap background="images/bgline.gif" tppabs="http://www.linuxhero.com/docs/images/bgline.gif"> 
                      <div align=center><font class=normalfont>搜索文章: 
                        <input type=hidden value=result name=action2>
                          <input type=radio checked value=title name=type>标题 
                          <input type=radio value=content name=type>内容 
                          <input type=image src="images/button_go.gif" tppabs="http://www.linuxhero.com/docs/images/button_go.gif" border=0 name=image2>
                        </font></div>
                    </td>
                  </tr>
                  <tr> 
                    <td noWrap> 
                      <div align="center"> 
                        <input maxlength=100 size=30 name=keyword2>
                      </div>
                    </td>
                  </tr></tbody> 
                </table>
              </form>
            </TD>
            <TD rowSpan=2><IMG src="images/header_r1_c7.gif" tppabs="http://www.linuxhero.com/docs/images/header_r1_c7.gif" width=26 border=0 name=header_r1_c7></TD>
          <TD><IMG height=83 src="images/spacer.gif" tppabs="http://www.linuxhero.com/docs/images/spacer.gif" width=1 border=0></TD></TR>
        <TR>
          <TD background="images/bgline.gif" tppabs="http://www.linuxhero.com/docs/images/bgline.gif"><IMG height=22 
            src="images/header_r2_c1.gif" tppabs="http://www.linuxhero.com/docs/images/header_r2_c1.gif" width=296 border=0 
            name=header_r2_c1></TD>
          <TD background="images/bgline.gif" tppabs="http://www.linuxhero.com/docs/images/bgline.gif" colSpan=5>
              <DIV align=right><FONT class=normalfont>当前位置: 
              <A href="index.html" tppabs="http://www.linuxhero.com/docs/index.html">本站首页</A>
              <font color="#FF6699">&gt;&gt;</font>
<A href="type18.html" tppabs="http://www.linuxhero.com/docs/type18.html">apache</A>                 | <A href="copyright.html" tppabs="http://www.linuxhero.com/docs/copyright.html">版权说明</A></font></DIV>
            </TD>
          <TD><IMG height=22 src="images/spacer.gif" tppabs="http://www.linuxhero.com/docs/images/spacer.gif" width=1 
        border=0></TD></TR></TBODY></TABLE>
      <TABLE cellSpacing=10 cellPadding=0 width="100%" bgColor=#ffffff 
        border=0>
         <TR>
          <TD>
            <TABLE cellSpacing=0 cellPadding=3 width="100%" border=0>
              
              <TR>
                <TD vAlign=top align=middle width="60%">
                  <TABLE cellSpacing=0 cellPadding=0 width="100%" 
                  background="images/back.gif" tppabs="http://www.linuxhero.com/docs/images/back.gif" border=0>
                    <TBODY>
                    <TR>
                        <TD vAlign=top width="80%"> 
                          <DIV align=center>
                        <FORM action="search.html" tppabs="http://www.linuxhero.com/docs/search.html" method=get>
                            </FORM>
                        <TABLE cellSpacing=0 cellPadding=0 width="95%" 
                          border=0><TBODY>
                          <TR>
                            <TD background="images/bgi.gif" tppabs="http://www.linuxhero.com/docs/images/bgi.gif" 
                          height=30></TD></TR></TBODY></TABLE>
                        <TABLE cellSpacing=0 cellPadding=3 width="95%" 
                        align=center border=0>
                          <TBODY>
                          <TR>
                            <TD>
                              <TABLE cellSpacing=0 cellPadding=3 width="100%" 
                              border=0>
                                <TBODY>
                                <TR>
                                      <TD vAlign=top> 
<p><FONT class=normalfont><B><font color=blue>在Apache服务器上运行mod_perl</font></B></FONT><BR><FONT class=smallfont color=#ff9900>2004-04-23 15:18 pm</FONT><BR><FONT class=normalfont>作者:作者<br>来自:Linux知识宝库<br>联系方式:无名<br><br>现在网上已经有大量的关于成功运行mod_perl模块的介绍, 该模块可以让Perl程序员更<br>
好地控制 Apache服务器。一旦Apache服务器中内置了mod_perl的Perl解释器, Perl脚<br>
本就可以快速执行,使得你的网页的访问者无需等待。<br>
<br>
如果你打算扩展Apache Web server的功能,你可以试试mod_perl模块的威力。模块是个集成到一起的程序集合,可以让网络开发者扩展其服务器的功能,而无需修改服务器软件自身。一旦有了模块,你就可以增强服务器的功能,例如在指定的时间段内,可以重定向URL,或者也可以对你的服务器进行优化,以便让Perl脚本运行得更快。<br>
现已经有大量功能强大的mod_perl模块的例子, 该模块可以让Perl程序员更好地控制其<br>
Apache服务器。Apache服务器中内置了mod_perl的Perl解释器, 使得Perl脚本可以快<br>
速执行,你的网页的访问者就无需等待。<br>
我将介绍两个关于安装模块的例子,其中第二个例子将介绍mod_perl模块。一旦你了<br>
解了这个过程,你就可以为Apache网络服务器配置其它各种不同的模块。请看<br>
Apache Module Registry,了解一下可以下载哪些增强的功能。<br>
<br>
模块入门<br>
<br>
扩展使用模块的Apache是相当方便的, 只要下载打算要用的模块。要了解如何<br>
安装和使用模块,我用如下一个简单的例子来阐明:当服务器接收到一个给定页面<br>
的请求时,服务器返回"Hello World"。<br>
<br>
假设你已经完成如下工作:在Apache安装时,已经带有了编译过的 mod_so模块,如果<br>
已经完成该步,就可以添加新模块到Apache中,而无须再编译。为了判断是否已经安装<br>
编译过的 mod_so模块,可以运行/httpd -l , 看看是否有mod_so。 如果没有,<br>
请阅读Dynamic Shared Object的中有关技术资料,重新配制你的服务器,以便包含mod_so。<br>
<br>
要运行Hello World模块, 先要下载mod_hello_world.c 文件,该.c文件是用来编译<br>
成.so文件的,你要使用apxs命令来进行编译,可以把编译后的文件保存在任何地方,<br>
你可以执行类似如下的命令:<br>
apxs -c -o mod_babble.so mod_babble.c<br>
<br>
为了让Hello World模块能够在你的服务器上运行,就要编译mod_hello_world,之<br>
后,就会创建一个名为mod_hello_world.so的文件,把该文件复制到Apache的libexec目<br>
录中,此时,我们已经完成了一半的任务,我们现在只要修改conf目录中的httpd.conf<br>
文件:打开httpd.conf文件,找到LoadModule 行,在该部分的最后一行后面,添加如下行:<br>
<br>
LoadModule hello_world_module libexec/mod_hello_world.so<br>
<br>
如果你有ClearModuleList,在你的配置文件中就会有AddModule部分,(如果你<br>
没有ClearModuleList,你可以跳过此步)在AddModule部分的末尾,添加如下行:<br>
<br>
AddModule mod_hello_world.c<br>
<br>
最后,在配置文件的AddModule部分后面的任何一处,添加如下内容:<br>
<br>
&lt;Location /hello&gt;<br>
SetHandler hello_world<br>
&lt;/Location&gt;<br>
<br>
该行告诉Apache,任何对名为"/hello"的页面的请求,将会被转到<br>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -