Chinaunix首页 | 论坛 | 博客
  • 博客访问: 293606
  • 博文数量: 69
  • 博客积分: 3370
  • 博客等级: 中校
  • 技术积分: 1035
  • 用 户 组: 普通用户
  • 注册时间: 2008-04-25 10:52
文章分类

全部博文(69)

文章存档

2019年(1)

2009年(7)

2008年(61)

我的朋友

分类: 系统运维

2008-08-05 01:12:34

Caucho Resin提供了最快的jsp/servlets运行平台。它支持Servlet,XSL Filtering6并且具备XSLT和XPath1.0引擎。为方便开发人员能更方便的搭建一个易用的开发平台

#官方网站
#下载地址

tar -zxvf resin-3.1.6.tar.gz
./configure --with-apxs=/usr/local/apache/bin/apxs --with-java-home=/usr/local/jdk1.5.0_06/ --prefix=/usr/local/resin
make && make install && make clean

eg:mv resin-3.0.18 /usr/local/resin

配置环境变量
方式一:
vi /etc/profile
export RESIN_HOME=/usr/local/resin
export CLASSPATH=.:$JAVA_HOME/lib:$JAVA_HOME/jre/lib:$RESIN_HOME/lib: #红色为增加内容,:/usr/local/jdbc 待确认
#export CLASSPATH=.:$CLASSPATH:$JAVA_HOME/lib/dt.jar:$JAVA_HOME/lib/tools.jar:$JAVA_HOME/lib/mysql-connector-java-3.2.0.jar:$JAVA_HOME/lib/classes12.jar

方式二:
ee /usr/local/resin/bin/httpd.sh
JAVA_HOME=/usr/local/jdk1.5.0_06
export JAVA_HOME
RESIN_HOME=/usr/local/resin
export RESIN_HOME

resin和apache整合:

1. #find / |grep mod_caucho.so
/usr/local/apache/modules/mod_caucho.so

2. #vi /usr/local/apache/conf/httpd.conf
LoadModule caucho_module modules/mod_caucho.so   #/usr/local/apache/modules/mod_caucho.so
ResinConfigServer localhost 6802
CauchoStatus yes                                 #以上红色编译后自动添加;


SetHandler caucho-status


3.vi /usr/local/resin/conf/resin.conf
红色部分是需要修改片断:

[color=Red] [/color]



[color=Red] document-directory="/usr/local/apache/htdocs/
">[/color]

 

vi /usr/local/resin/conf/resin.conf      


port="8088"/>

 

 


4.整合测试:

启动 apache
/usr/local/apache/bin/apachectl restart
启动 resin
/usr/local/resin/bin/httpd.sh start

/usr/local/jdk1.5.0_06/bin/java -jar $RESIN_HOME/lib/resin.jar start/stop/restart

Resin/3.1.6 started -server '' for watchdog at 127.0.0.1:6600
自动启动
cd /usr/local/etc/rc.d
ln -s resin.sh /usr/local/resin/bin/httpd.sh

 

测试 resin
 成功

/

 

Resin® Default Home Page

This is the default page for the Resin web server.

Documentation is available .

Administration is available .

 

 

5.设置管理密码:

 

选择:

Administration is available .

 

resin.conf :

 

The digest for user admin in realm resin is MnHpobDOvrMOyQFWoa5w7A==

The following can now be set in the resin.conf file to enable administration functionality.


  
     
     ...
  
     ...

By default, access to the administration application is limited to the localhost. The default behaviour can be changed in the resin.conf file. To enable access to clients other than localhost:

  

Once the file has been updated, you can .

 

其他目录管理密码:




  // Digest password
阅读(1533) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~