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

📄 1491.html

📁 著名的linux英雄站点的文档打包
💻 HTML
📖 第 1 页 / 共 3 页
字号:
<br>
php<br>
./configure --with-apxs=/home/apache/bin/apxs --enable-track-vars <br>
--with-mysql <br>
--with-oci8=/home/oracle/product/8.1.7 <br>
--with-oracle=/home/oracle/product/8.1.7<br>
make <br>
make install<br>
<br>
修改httpd.conf<br>
&lt;IfModule mod_dir.c&gt;<br>
DirectoryIndex index.html index.php index.php3<br>
&lt;/IfModule&gt;<br>
在&lt;IfModule mod_mime.c&gt;中加入:<br>
AddType application/x-httpd-php .php .php3<br>
<br>
resin<br>
./configure --with-apxs=/home/apache/bin/apxs<br>
make<br>
make install<br>
<br>
修改httpd.conf<br>
&lt;IfModule mod_caucho.c&gt;<br>
CauchoConfigFile /home/resin/conf/resin.conf<br>
&lt;/IfModule&gt; &lt;/p&gt;
&lt;p&gt;文档共享技巧:<br>
1
对于文档的共享来说,autoindex模块非常有用,让APACHE自动索引目录缺省是按文件/目录名排序的,而且文件名40个字符以上部分是被截断的,为了能显示完整的文件名,并且像资源管理器那样将目录排在前面,文件排在后面:<br>
在&lt;IfModule mod_autoindex.c&gt;模块设置中:<br>
#增加NameWidth选项,并且文件名长度是*(自动适应当前目录下最长文件名)<br>
#增加FoldersFirst选项,让目录列在前面(类似于资源管理器)<br>
#增加了ScanHTMLTitles用HTML文件的TITLE做文件的描述,并设置描述长度是*(自适应最长)<br>
IndexOptions FancyIndexing +NameWidth=* FoldersFirst ScanHTMLTitles
+DescriptionWidth=*&lt;/p&gt;
&lt;p&gt;2
如果是CGI开发,如何让用户在自己的目录下能够发布CGI程序,比如:http://192.168.0.200/~chedong/cgi-bin/my_cgi:在<br>
&lt;IfModule mod_alias.c&gt;模块设置中,添加正则表达式:<br>
ScriptAliasMatch ~([a-z]+)/cgi-bin/(.*) /home/$1/cgi-bin/$2<br>
意思是匹配~user_name/cgi-bin/cgi_name自动映射到/home/user_name/cgi-bin/cgi-name脚本&lt;/p&gt;
&lt;p&gt;3 如果允许所有目录可以自动索引浏览autoindex,需要将<br>
&lt;Directory "/home/apache/htdocs"&gt; &lt;===改成  &lt;Directory "/"&gt;<br>
<br>
<br>
&lt;/p&gt;
&lt;p&gt;&lt;b&gt;版本控制:CVS&lt;/b&gt;&lt;/p&gt;
&lt;p&gt;CVS缺省在服务器上几乎都安装好了,只要按照以下步骤初始化即可:&lt;/p&gt;
&lt;p&gt;在/etc/profile里:<br>
CVS库所在的主服务器设置:<br>
export CVSROOT=/home/cvsroot<br>
在其他开发服务器里设置:<br>
export CVSROOT=:ext:$USER@192.168.0.200:/home/cvsroot<br>
export CVS_RSH=ssh<br>
<br>
然后在主服务器上cvs init初始化:&lt;/p&gt;
&lt;p&gt;关于CVSWEB的设置,重复以下&lt;a href="cvs_card.html#cvsweb" tppabs="http://www.chedong.com/tech/cvs_card.html#cvsweb"&gt;CVS常用命令手册中CVSWEB&lt;/a&gt;的内容:&lt;/p&gt;
&lt;p&gt;CVSWEB的下载:CVSWEB从最初的版本已经演化出很多功能界面更丰富的版本,这个是个人感觉安装设置比较方便的:<br>
&lt;a href="javascript:if(confirm('http://www.spaghetti-code.de/software/linux/cvsweb/  This file was not retrieved by Teleport Pro, because it is addressed on a domain or path outside the boundaries set for its Starting Address.  Do you want to open it from the server?'))window.location='http://www.spaghetti-code.de/software/linux/cvsweb/'" tppabs="http://www.spaghetti-code.de/software/linux/cvsweb/"&gt;http://www.spaghetti-code.de/software/linux/cvsweb/&lt;/a&gt;<br>
<br>
下载解包:<br>
tar zxf cvsweb.tgz<br>
把配置文件cvsweb.conf放到安全的地方(比如和apache的配置放在同一个目录下),<br>
修改:cvsweb.cgi让CGI找到配置文件:<br>
$config = $ENV{'CVSWEB_CONFIG'} || '/path/to/apache/conf/cvsweb.conf';<br>
<br>
转到/path/to/apache/conf下并修改cvsweb.conf:&lt;/p&gt;
&lt;ol&gt;
  &lt;li&gt;修改CVSROOT路径设置:<br>
%CVSROOT = (<br>
'Development' =&gt; '/path/to/cvsroot', #&lt;==修改指向本地的CVSROOT<br>
); &lt;/li&gt;
  &lt;li&gt;缺省不显示已经删除的文档:<br>
"hideattic" =&gt; "1",#&lt;==缺省不显示已经删除的文档 &lt;/li&gt;
  &lt;li&gt;在配置文件cvsweb.conf中还可以定制页头的描述信息,你可以修改$long_intro成你需要的文字&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;首先可以CVS进库里的就是以上系统的安装文档。&lt;/p&gt;
&lt;p&gt;更多的关于CVS的扩展应用可以参考&lt;a href="cvs_card.html#cvstrac" tppabs="http://www.chedong.com/tech/cvs_card.html#cvstrac"&gt;CVS常用命令手册CVSTRAC部分。&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;多个服务之间的资源共享&lt;/b&gt;&lt;/p&gt;
&lt;p&gt;一般可以通过链接解决,比如:&lt;/p&gt;
&lt;p&gt;我希望匿名ftp共享的内容(比如在/var/ftp/pub目录下)都可以WEB发布,<br>
ln -s /var/ftp/pub /home/apache/htdocs/pub&lt;/p&gt;
&lt;p&gt;我希望/usr/share/doc里的文档大家可以通过WEB浏览:<br>
ln -s /usr/share/doc /home/apache/htdocs/doc&lt;/p&gt;
&lt;p&gt;我希望WEB发布的内容大家通过WINDOWS网络邻居也可以访问:假设/home/share是samba发布的只读共享路径<br>
ln -s /home/apache/htdocs  /home/share&lt;/p&gt;
&lt;p&gt;服务的自动启动:<br>
系统已经安装的服务一般可以通过setup的服务配置是否自动启动,否则就在/etc/rc.local里加一些启动脚本即可。<br>
比如:<br>
&lt;/p&gt;
&lt;p&gt;&lt;b&gt;备份和日志统计&lt;/b&gt;&lt;/p&gt;
&lt;p&gt;可以将以下脚本写在主服务器的ROOT的CRON里:&lt;/p&gt;
&lt;pre&gt;#time sync<br>0 5 * * 1 (/usr/bin/rdate -s YOUR_DATE_TIME_SERVER)<br><br>#backup cvsroot<br>5 3 * * * (cd /home; tar czf /home/backup/cvsroot.`date +\%w`.tgz cvsroot)<br><br>#backup apache<br>8 3 * * * (cd /home; tar czf /home/backup/apache.`date +\%w`.tgz apache)<br><br>#webalizer demo<br>3 5 * * * (/usr/local/bin/webalizer -c /home/apache/conf/webalizer.conf /home/apache/logs/`date -d yesterday +<br>%w`/access_log)<br><br>#remove last week web log<br>3 4 * * * (find /home/apache/logs/ -name access_log -mtime +4 -exec rm -f {} ;)<br>&lt;/pre&gt;
&lt;p&gt;这样,在/home/backup目录下会有按星期轮训的7个备份。然后通过在辅助服务器上设置CRON用wget的-m选项镜像主服务器上的/home/backup目录或者用rsync做同步就可以了。后面的2条是关于使用webalzier做服务器的日志统计,APACHE的日志通过cronolog进行了轮循。具体设置请参考:&lt;/p&gt;
&lt;p style="font-weight: bold;"&gt;基于RSYNC的同步备份:&lt;/p&gt;
&lt;p&gt;主服务器:设置启动rsync服务<br>
/etc/rsyncd.conf <br>
hosts allow 192.168.0.*<br>
[ftp]<br>
path = /home/apache/htdocs<br>
comment = docs need backup&lt;/p&gt;
&lt;p&gt;备份服务器:每天6点同步一次数据<br>
2 6 * * * (/usr/bin/rsync -au --delete rsync://192.168.0.200/ftp
/home/apache/htdocs ) &lt;/p&gt;
&lt;p&gt;TODO:&lt;/p&gt;
&lt;p&gt;基于WIKIWIKi模式的BLOG系统;&lt;/p&gt;
&lt;p&gt;打印服务;&lt;/p&gt;
&lt;p&gt;参考资料:&lt;/p&gt;
O'Reilly在线手册:Using Samba<br>
&lt;a href="javascript:if(confirm('http://www.oreilly.com/catalog/samba/chapter/book/index.html  This file was not retrieved by Teleport Pro, because it is addressed on a domain or path outside the boundaries set for its Starting Address.  Do you want to open it from the server?'))window.location='http://www.oreilly.com/catalog/samba/chapter/book/index.html'" tppabs="http://www.oreilly.com/catalog/samba/chapter/book/index.html"&gt;http://www.oreilly.com/catalog/samba/chapter/book/index.html&lt;/a&gt;
&lt;p&gt;<br>
&lt;/p&gt;
</FONT><br>
                                      </TD>
                                    </TR>
                                <TR>
                                <TD colSpan=2><FONT 
                                class=middlefont></FONT><BR>
                                        <FONT 
                                class=normalfont>全文结束</FONT> </TD>
                                    </TR>
                                <TR>
                                <TD background="images/dot.gif" tppabs="http://www.linuxhero.com/docs/images/dot.gif" colSpan=2 
                                height=10></TD></TR></TBODY></TABLE></TD></TR></TBODY></TABLE></DIV></TD>
                        <TD vAlign=top width="20%" 
                      background="images/line.gif" tppabs="http://www.linuxhero.com/docs/images/line.gif" rowSpan=2> 
                          <DIV align=center> 
                            <table class=tableoutline cellspacing=1 cellpadding=4 
                        width="100%" align=center border=0>
                              <tr class=firstalt> 
                                <td noWrap background="images/bgline.gif" tppabs="http://www.linuxhero.com/docs/images/bgline.gif" colspan=2 height=21>
                                <font class=normalfont><b>所有分类</b></font></td>
                              </tr>
<tr class=secondalt> <td noWrap width=27%> <font class=normalfont>1:</font> </td><td noWrap width=73%>   <table width=100% border=0>    <tr>       <td><font class=normalfont><a href="type1.html" tppabs="http://www.linuxhero.com/docs/type1.html">非技术类</a></font></td>    </tr>  </table></td></tr><tr class=firstalt> <td noWrap width=27%> <font class=normalfont>2:</font> </td><td noWrap width=73%>   <table width=100% border=0>    <tr>       <td><font class=normalfont><a href="type2.html" tppabs="http://www.linuxhero.com/docs/type2.html">基础知识</a></font></td>    </tr>  </table></td></tr><tr class=secondalt> <td noWrap width=27%> <font class=normalfont>3:</font> </td><td noWrap width=73%>   <table width=100% border=0>    <tr>       <td><font class=normalfont><a href="type3.html" tppabs="http://www.linuxhero.com/docs/type3.html">指令大全</a></font></td>    </tr>  </table></td></tr><tr class=firstalt> <td noWrap width=27%> <font class=normalfont>4:</font> </td><td noWrap width=73%>   <table width=100% border=0>    <tr>       <td><font class=normalfont><a href="type4.html" tppabs="http://www.linuxhero.com/docs/type4.html">shell</a></font></td>    </tr>  </table></td></tr><tr class=secondalt> <td noWrap width=27%> <font class=normalfont>5:</font> </td><td noWrap width=73%>   <table width=100% border=0>    <tr>       <td><font class=normalfont><a href="type5.html" tppabs="http://www.linuxhero.com/docs/type5.html">安装启动</a></font></td>    </tr>  </table></td></tr><tr class=firstalt> <td noWrap width=27%> <font class=normalfont>6:</font> </td><td noWrap width=73%>   <table width=100% border=0>    <tr>       <td><font class=normalfont><a href="type6.html" tppabs="http://www.linuxhero.com/docs/type6.html">xwindow</a></font></td>    </tr>  </table></td></tr><tr class=secondalt> <td noWrap width=27%> <font class=normalfont>7:</font> </td><td noWrap width=73%>   <table width=100% border=0>    <tr>       <td><font class=normalfont><a href="type7.html" tppabs="http://www.linuxhero.com/docs/type7.html">kde</a></font></td>    </tr>  </table></td></tr><tr class=firstalt> <td noWrap width=27%> <font class=normalfont>8:</font> </td><td noWrap width=73%>   <table width=100% border=0>    <tr>       <td><font class=normalfont><a href="type8.html" tppabs="http://www.linuxhero.com/docs/type8.html">gnome</a></font></td>    </tr>  </table></td></tr><tr class=secondalt> <td noWrap width=27%> <font class=normalfont>9:</font> </td><td noWrap width=73%>   <table width=100% border=0>    <tr>       <td><font class=normalfont><a href="type9.html" tppabs="http://www.linuxhero.com/docs/type9.html">输入法类</a></font></td>    </tr>  </table></td></tr><tr class=firstalt> <td noWrap width=27%> <font class=normalfont>10:</font> </td><td noWrap width=73%>   <table width=100% border=0>    <tr>       <td><font class=normalfont><a href="type10.html" tppabs="http://www.linuxhero.com/docs/type10.html">美化汉化</a></font></td>    </tr>  </table></td></tr><tr class=secondalt> <td noWrap width=27%> <font class=normalfont>11:</font> </td><td noWrap width=73%>   <table width=100% border=0>    <tr>       <td><font class=normalfont><a href="type11.html" tppabs="http://www.linuxhero.com/docs/type11.html">网络配置</a></font></td>    </tr>  </table></td></tr><tr class=firstalt> <td noWrap width=27%> <font class=normalfont>12:</font> </td><td noWrap width=73%>   <table width=100% border=0>    <tr>       <td><font class=normalfont><a href="type12.html" tppabs="http://www.linuxhero.com/docs/type12.html">存储备份</a></font></td>    </tr>  </table></td></tr><tr class=secondalt> <td noWrap width=27%> <font class=normalfont>13:</font> </td><td noWrap width=73%>   <table width=100% border=0>    <tr>       <td><font class=normalfont><a href="type13.html" tppabs="http://www.linuxhero.com/docs/type13.html">杂项工具</a></font></td>    </tr>  </table></td></tr><tr class=firstalt> <td noWrap width=27%> <font class=normalfont>14:</font> </td><td noWrap width=73%>   <table width=100% border=0>    <tr>       <td><font class=normalfont><a href="type14.html" tppabs="http://www.linuxhero.com/docs/type14.html">编程技术</a></font></td>    </tr>  </table></td></tr><tr class=secondalt> <td noWrap width=27%> <font class=normalfont>15:</font> </td><td noWrap width=73%>   <table width=100% border=0>    <tr>       <td><font class=normalfont><a href="type15.html" tppabs="http://www.linuxhero.com/docs/type15.html">网络安全</a></font></td>    </tr>  </table></td></tr><tr class=firstalt> <td noWrap width=27%> <font class=normalfont>16:</font> </td><td noWrap width=73%>   <table width=100% border=0>    <tr>       <td><font class=normalfont><a href="type16.html" tppabs="http://www.linuxhero.com/docs/type16.html">内核技术</a></font></td>    </tr>  </table></td></tr><tr class=secondalt> <td noWrap width=27%> <font class=normalfont>17:</font> </td><td noWrap width=73%>   <table width=100% border=0>    <tr>       <td><font class=normalfont><a href="type17.html" tppabs="http://www.linuxhero.com/docs/type17.html">速度优化</a></font></td>    </tr>  </table></td></tr><tr class=firstalt> <td noWrap width=27%> <font class=normalfont>18:</font> </td><td noWrap width=73%>   <table width=100% border=0>    <tr>       <td><font class=normalfont><a href="type18.html" tppabs="http://www.linuxhero.com/docs/type18.html">apache</a></font></td>    </tr>  </table></td></tr><tr class=secondalt> <td noWrap width=27%> <font class=normalfont>19:</font> </td><td noWrap width=73%>   <table width=100% border=0>    <tr>       <td><font class=normalfont><a href="type19.html" tppabs="http://www.linuxhero.com/docs/type19.html">email</a></font></td>    </tr>  </table></td></tr><tr class=firstalt> <td noWrap width=27%> <font class=normalfont>20:</font> </td><td noWrap width=73%>   <table width=100% border=0>    <tr>       <td><font class=normalfont><a href="type20.html" tppabs="http://www.linuxhero.com/docs/type20.html">ftp服务</a></font></td>    </tr>  </table></td></tr><tr class=secondalt> <td noWrap width=27%> <font class=normalfont>21:</font> </td><td noWrap width=73%>   <table width=100% border=0>    <tr>       <td><font class=normalfont><a href="type21.html" tppabs="http://www.linuxhero.com/docs/type21.html">cvs服务</a></font></td>    </tr>  </table></td></tr><tr class=firstalt> <td noWrap width=27%> <font class=normalfont>22:</font> </td><td noWrap width=73%>   <table width=100% border=0>    <tr>       <td><font class=normalfont><a href="type22.html" tppabs="http://www.linuxhero.com/docs/type22.html">代理服务</a></font></td>    </tr>  </table></td></tr><tr class=secondalt> <td noWrap width=27%> <font class=normalfont>23:</font> </td><td noWrap width=73%>   <table width=100% border=0>    <tr>       <td><font class=normalfont><a href="type23.html" tppabs="http://www.linuxhero.com/docs/type23.html">samba</a></font></td>    </tr>  </table></td></tr><tr class=firstalt> <td noWrap width=27%> <font class=normalfont>24:</font> </td><td noWrap width=73%>   <table width=100% border=0>    <tr>       <td><font class=normalfont><a href="type24.html" tppabs="http://www.linuxhero.com/docs/type24.html">域名服务</a></font></td>    </tr>  </table></td></tr><tr class=secondalt> <td noWrap width=27%> <font class=normalfont>25:</font> </td><td noWrap width=73%>   <table width=100% border=0>    <tr>       <td><font class=normalfont><a href="type25.html" tppabs="http://www.linuxhero.com/docs/type25.html">网络过滤</a></font></td>    </tr>  </table></td></tr><tr class=firstalt> <td noWrap width=27%> <font class=normalfont>26:</font> </td><td noWrap width=73%>   <table width=100% border=0>    <tr>       <td><font class=normalfont><a href="type26.html" tppabs="http://www.linuxhero.com/docs/type26.html">其他服务</a></font></td>    </tr>  </table></td></tr><tr class=secondalt> <td noWrap width=27%> <font class=normalfont>27:</font> </td><td noWrap width=73%>   <table width=100% border=0>    <tr>       <td><font class=normalfont><a href="type27.html" tppabs="http://www.linuxhero.com/docs/type27.html">nfs</a></font></td>    </tr>  </table></td></tr><tr class=firstalt> <td noWrap width=27%> <font class=normalfont>28:</font> </td><td noWrap width=73%>   <table width=100% border=0>    <tr>       <td><font class=normalfont><a href="type28.html" tppabs="http://www.linuxhero.com/docs/type28.html">oracle</a></font></td>    </tr>  </table></td></tr><tr class=secondalt> <td noWrap width=27%> <font class=normalfont>29:</font> </td><td noWrap width=73%>   <table width=100% border=0>    <tr>       <td><font class=normalfont><a href="type29.html" tppabs="http://www.linuxhero.com/docs/type29.html">dhcp</a></font></td>    </tr>  </table></td></tr><tr class=firstalt> <td noWrap width=27%> <font class=normalfont>30:</font> </td><td noWrap width=73%>   <table width=100% border=0>    <tr>       <td><font class=normalfont><a href="type30.html" tppabs="http://www.linuxhero.com/docs/type30.html">mysql</a></font></td>    </tr>  </table></td></tr><tr class=secondalt> <td noWrap width=27%> <font class=normalfont>31:</font> </td><td noWrap width=73%>   <table width=100% border=0>    <tr>       <td><font class=normalfont><a href="type31.html" tppabs="http://www.linuxhero.com/docs/type31.html">php</a></font></td>    </tr>  </table></td></tr><tr class=firstalt> <td noWrap width=27%> <font class=normalfont>32:</font> </td><td noWrap width=73%>   <table width=100% border=0>    <tr>       <td><font class=normalfont><a href="type32.html" tppabs="http://www.linuxhero.com/docs/type32.html">ldap</a></font></td>    </tr>  </table></td></tr>                            </table>
                          </DIV></TD></TR>
                    <TR vAlign=top>
                        <TD width="80%"> 
                          <DIV align=center><BR>
                          </DIV>
                        </TD></TR></TBODY></TABLE></TD></TR>
                </TABLE></TD></TR>
          </TABLE>
      <TABLE cellSpacing=0 cellPadding=4 width="100%" bgColor=#eeeeee 
        border=0><TBODY>
        <TR>
          <TD width="50%">
              <P><FONT class=middlefont>版权所有 &copy; 2004 <A 
            href="mailto:bjchenxu@sina.com">linux知识宝库</A><BR>
                违者必究. </FONT></P>
            </TD>
          <TD width="50%">
              <DIV align=right><FONT class=middlefont>Powered by: <A 
            href="mailto:bjchenxu@sina.com">Linux知识宝库</A> Version 0.9.0 </FONT></DIV>
            </TD></TR></TBODY></TABLE>
      <CENTER></CENTER></TD></TR>
    </TABLE></CENTER></BODY></HTML>

⌨️ 快捷键说明

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