免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 976 | 回复: 0
打印 上一主题 下一主题

整合apache+tomcat [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2008-04-22 12:13 |只看该作者 |倒序浏览

               

  Normal
  0
  
  
  
  7.8 磅
  0
  2
  
  false
  false
  false
  
  EN-US
  ZH-CN
  X-NONE
  
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
  
  MicrosoftInternetExplorer4
  
   
   
   
   
   
   
   
   
   
   
   
  

  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  

st1\:*{behavior:url(#ieooui) }
/* Style Definitions */
table.MsoNormalTable
        {mso-style-name:普通表格;
        mso-tstyle-rowband-size:0;
        mso-tstyle-colband-size:0;
        mso-style-noshow:yes;
        mso-style-priority:99;
        mso-style-qformat:yes;
        mso-style-parent:"";
        mso-padding-alt:0cm 5.4pt 0cm 5.4pt;
        mso-para-margin:0cm;
        mso-para-margin-bottom:.0001pt;
        mso-pagination:widow-orphan;
        font-size:10.5pt;
        mso-bidi-font-size:11.0pt;
        font-family:"Calibri","sans-serif";
        mso-ascii-font-family:Calibri;
        mso-ascii-theme-font:minor-latin;
        mso-fareast-font-family:宋体;
        mso-fareast-theme-font:minor-fareast;
        mso-hansi-font-family:Calibri;
        mso-hansi-theme-font:minor-latin;
        mso-bidi-font-family:"Times New Roman";
        mso-bidi-theme-font:minor-bidi;
        mso-font-kerning:1.0pt;}
下载原文件
================================
apache_1.3.14.tar.gz
jakarta-tomcat-3.2.tar.gz
jakarta-tomcat-3.2-src.tar.gz
编译 apache
=================================
gzip -dc apache_1.3.14.tar.gz | tar xvf -
cd apache_1.3.14
./configure --prefix=/www/apache --enable-module=so --enable_rule=SHARED_CORE (允许 DSO,运行 apxs 必须)
make
make install
运行 tomcat
=================================
gzip -dc jakarta-tomcat-3.2.tar.gz | tar xvf -
mv jakarta-tomcat-3.2 tomcat
cd tomcat/bin
./startup.sh (自动生成 tomcat-apache.conf 文件)
cp tomcat-apache.conf /www/apache/conf/
生成 mod_jserv.so 文件
=================================
gzip -dc jakarta-tomcat-3.2-src.tar.gz | tar xvf -
cd jakarta-tomcat-3.2-src/src/native/apache/jserv
/www/apache/bin/apxs -c -o mod_jserv.so *.c (指定 apxs 路径)
cp mod_jserv.so /www/apache/libexec
修改 httpd.conf 和 tomcat-apache.conf
=================================
cd /www/apache/conf
vi httpd.conf
(insert line)Include conf/tomcat-apache.conf(在
httpd.conf 里增加一行)
(tomcat-apache.conf 不做任何修改)
运行 apache
=================================
cd /www/apache/bin
./apachectl start
测试结果
=================================
默认根目录为/webapps/ROOT
class默认目录为/webapps/ROOT/WEB-INF/classes
测试成功。
主要参考资料
=================================
http://www.jguru.com/jguru/faq/printablefaq.jsp?faq=Tomcat
http://jakarta.apache.org/tomcat/jakarta-tomcat/src/doc/uguide/tomcat_ug.html
总结
=================================
SOLARIS 下生成 mod_jserv.so 文件为难点,LINUX
下编译的不能使用。不同的APACHE,UNIX版本都不能通用。

               
               
               
               
               

本文来自ChinaUnix博客,如果查看原文请点:http://blog.chinaunix.net/u/27479/showart_572450.html
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP