Java开发网 Java开发网
注册 | 登录 | 帮助 | 搜索 | 排行榜 | 发帖统计  

您没有登录

» Java开发网 » Application Server  

按打印兼容模式打印这个话题 打印话题    把这个话题寄给朋友 寄给朋友    该主题的所有更新都将Email到你的邮箱 订阅主题
flat modethreaded modego to previous topicgo to next topicgo to back
作者 resin,apache,jdk在linux advance2.1下的安装
zhangcg



发贴: 0
积分: 0
于 2003-07-30 15:01 user profilesend a private message to usersearch all posts byselect and copy to clipboard. 
ie only, sorry for netscape users:-)add this post to my favorite list
from zhangcg@syerp.com(个人测试通过)

1:安装jdk
下载软件:http://java.sun.com/j2se/1.4.2/download.html,
下载文件j2sdk-1_4_2-linux-i586-rpm.bin(33M)
安装:执行j2sdk-1_4_2-linux-i586-rpm.bin
rpm –install j2sdk-1_4_2-linux-i586-rpm
2:安装resin-2.1.10
tar -vzxf resin-2.1.0.tar.gz
Execute resin-2.1.0/bin/httpd.sh
Browse http://localhost:8080
设置JAVA_HOME=/usr/java/j2sdk1.4.2
设置RESIN_HOME=/usr/resin-2.1.10
3:安装apache
先停原apache ,在/etc/services文件中去掉http服务
下载http://apache.todayisp.com/httpd/httpd-2.0.47.tar.Z文件,放在/usr/temp目录
gunzip httpd-2.0.47.tar.Z
tar xvf httpd-2.0.47
./configure –prefix=/usr/local/apache –enable-module=so
make
make install
在/usr/local/apache/bin中执行apachectl start
brow http://localhost
在.usr/resin-2.1.10下执行(编译mod_caucho.so)
./configure –with-apxs=/usr/local/apache/bin/apxs –with-apache=/usr/local/apache
make
make install
4:修改resin.conf的配置文件
<caucho.com>
<http-server
app-dir='/usr/local/apache/htdocs'>
<servlet-mapping url-pattern='/servlets/*'
servlet-name='invoker'/>

<servlet-mapping url-pattern='*.xtp'
servlet-name='com.caucho.jsp.XtpServlet'/>
<servlet-mapping url-pattern='*.jsp'
servlet-name='com.caucho.jsp.JspServlet'/>
</http-server>
</caucho.com>
重新启动resin,apache
5:测试
在/usr/local/apache/htdocs下编写 add.jsp 内容:2 + 2 = <%= 2 + 2 %>
分别使用localhost/add.jsp localhost:8080/add.jsp如果都可以看到数据,则表示一切ok





flat modethreaded modego to previous topicgo to next topicgo to back
  已读帖子
  新的帖子
  被删除的帖子
Jump to the top of page

   Powered by Jute Powerful Forum® Version Jute 1.5.6 Ent
Copyright © 2002-2021 Cjsdn Team. All Righits Reserved. 闽ICP备05005120号-1
客服电话 18559299278    客服信箱 714923@qq.com    客服QQ 714923