Topic: resin,apache,jdk在linux advance2.1下的安装 |
![]() |
1.resin,apache,jdk在linux advance2.1下的安装 | Copy to clipboard |
Posted by: zhangcg Posted on: 2003-07-30 15:01 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 |
![]() |
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 |