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

📄 1306.html

📁 著名的linux英雄站点的文档打包
💻 HTML
📖 第 1 页 / 共 2 页
字号:
#更改shell文件属性:<br>
#chmod 755 /etc/profile.d/java.sh<br>
<br>
#查看是否正确<br>
#which java<br>
/usr/local/jdk/bin/java<br>
<br>
<br>
安装apache :<br>
<br>
#cd /usr/local/src/<br>
#tar -xzvf httpd-2.0.47.tar.gz<br>
#cd httpd-2.0.47<br>
#配置apache 支持动态module 加载<br>
#./configure<br>
"--with-layout=Apache"<br>
"--prefix=/usr/local/apache"<br>
"--enable-module=so"<br>
"--enable-module=setenvif"<br>
"--enable-module=rewrite"<br>
"--with-mpm=prefork"<br>
<br>
#make<br>
#make install<br>
<br>
#修改http.conf 具体的修改请参考apache2.0文档<br>
# 或者查看 http://www.cnfug.org/journal/3/02.html<br>
<br>
StartServers 10<br>
MinSpareServers 25<br>
MaxSpareServers 50<br>
ServerLimit 2000<br>
MaxClients 1500 #Apache可以同时处理的请求<br>
MaxRequestsPerChild 10000<br>
<br>
<br>
<br>
安装Php :<br>
下载: php-4.3.3.tar.gz<br>
#cd /usr/local/src<br>
#tar -xzvf<br>
<br>
#php for apache 以apache modules的方式运行<br>
./configure --with-apxs2=/usr/local/apache/bin/apxs<br>
<br>
#php run like shell 以单独的shell方式运行<br>
./configure --prefix=/usr/local/php<br>
<br>
#php for apache<br>
./configure<br>
--with-apxs2=/usr/local/apache/bin/apxs<br>
--enable-track-vars<br>
--enable-debug<br>
--enable-url-includes<br>
--enable-sockets<br>
--with-config-file-path=/usr/local/apache/conf #php.ini文件放的目录<br>
#下面的参数是安装PHP + gd库<br>
--with-gd=/usr/local<br>
--enable-gd-native-ttf<br>
--with-ttf=/usr/local<br>
--with-jpeg-dir=/usr/local<br>
--with-zlib-dir=/usr/local<br>
--with-png-dir=/usr/local<br>
#make<br>
#make install<br>
#ls -l /usr/local/apache/modules/libphp4.so #存在 安装成功<br>
<br>
#修改apache http.conf<br>
添加<br>
LoadModule php4_module modules/libphp4.so<br>
AddType application/x-httpd-php .php<br>
<br>
<br>
安装Tomcat:<br>
#cd /usr/local<br>
#tar -xzvf jakarta-tomcat-4.1.24.tar.gz<br>
#ln -s jakarta-tomcat-4.1.24 tomcat<br>
#测试Tomcat正常安装:<br>
#/usr/local/tomcat/bin/startup.sh<br>
<br>
#通过IE http://yourIP:8080/ Tomcat的页面正常显示<br>
<br>
<br>
安装JK2 :<br>
#cd /usr/local/src<br>
#tar -xzvf jakarta-tomcat-connectors-jk2-2.0.2-src.tar.gz<br>
#cd jakarta-tomcat-connectors-jk2-2.0.2-src<br>
#cd jk/native2<br>
#chmod 755 buildconf.sh<br>
#./configure --with-apxs2=/usr/local/apache/bin/apxs --enable-EAPI<br>
#make<br>
#make install<br>
#如果make install 不成功需要手工发布mod_jk2.so<br>
#cd /usr/local/src/jakarta-tomcat-connectors-jk2-2.0.2-src/jk/build/jk2/apache2<br>
#cp *.so /usr/local/apache/modules/<br>
<br>
<br>
配置$CATLINA/conf/server.xml<br>
<br>
<br>
#编辑<br>
#vi /usr/local/tomcat/conf/jk2.properties<br>
# list of needed handlers.<br>
handler.list=channelSocket,request<br>
# Override the default port for the channelSocket<br>
channelSocket.port=8009<br>
<br>
<br>
#编辑文件:<br>
<br>
#vi /usr/local/apache/conf/workers2.properties<br>
<br>
# only at beginnin. In production uncomment it out<br>
[logger.apache2]<br>
level=DEBUG<br>
<br>
[shm]<br>
file=/usr/local/apache/logs/shm.file<br>
size=1048576<br>
<br>
# Example socket channel, override port and host.<br>
[channel.socket:localhost:8009]<br>
port=8009<br>
host=127.0.0.1<br>
<br>
# define the worker<br>
[ajp13:localhost:8009]<br>
channel=channel.socket:localhost:8009<br>
<br>
# Uri mapping<br>
[uri:192.168.0.90/*.jsp]<br>
worker=ajp13:localhost:8009<br>
<br>
[uri:211.167.83.165/*.jsp]<br>
worker=ajp13:localhost:8009<br>
<br>
#编辑http.conf<br>
#修改<br>
DocumentRoot "/usr/local/tomcat/webapps"<br>
#添加index.jsp<br>
DirectoryIndex index.html index.html.var index.jsp<br>
<br>
<br>
LoadModule jk2_module modules/mod_jk2.so<br>
<br>
<br>
Order deny,allow<br>
Deny from all<br>
<br>
#<br>
# Order deny,allow<br>
# Deny from all<br>
#<br>
<br>
<br>
Order Allow,Deny<br>
<br>
<br>
<br>
ServerName www.home.net<br>
ServerAlias www<br>
ServerAlias localhost<br>
ServerAlias 192.168.0.90<br>
ServerAlias 211.167.83.165<br>
ServerAdmin webmater@5757.com<br>
DocumentRoot /usr/local/tomcat/webapps<br>
<br>
ErrorLog logs/home.net-errorlog<br>
CustomLog logs/home.net-access.log common<br>
<br>
<br>
JkUriSet worker ajp13:localhost:8009<br>
<br>
<br>
<br>
<br>
在配置server.xml 的时候:<br>
配置管理端口 和连接的端口顺序颠倒一下<br>
在 catalina.out 可以观察到:<br>
这样用apache 连接的时候,就不用等待了.<br>
<br>
<br>
port="8009" minProcessors="5" maxProcessors="75"<br>
enableLookups="true" redirectPort="8443"<br>
acceptCount="10" debug="0" connectionTimeout="0"<br>
useURIValidationHack="false"<br>
protocolHandlerClassName="org.apache.jk.server.JkCoyoteHandler"/&gt;<br>
<br>
<br>
port="8080" minProcessors="5" maxProcessors="75"<br>
enableLookups="true" redirectPort="8443"<br>
acceptCount="100" debug="0" connectionTimeout="20000"<br>
useURIValidationHack="false" disableUploadTimeout="true" /&gt;<br>
<br>
#server.xml 不支持中文的注释<br>
#对 shared/classes 目录下的java进行的修改不能立刻的反应到jsp中标.不能立即起作用.<br>
<br>
以上的安装同样适合jakarta-tomcat-5.0.12 在以下的配置中注意<br>
<br>
#在配置 jakarta-tomcat-5.0.12 的时候,注意 server.xml 中<br>
<br>
没有封闭.<br>
<br>
BUG:<br>
<br>
在catalina.out 报错误.<br>
<br>
总体上感觉tomcat 5.0 比4.x在性能上是有了改进.启动的速度快.<br>
</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 + -