首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 企业软件 > 行业软件 >

resin4 容易学习

2012-08-13 
resin4 简单学习?1. Resin 4.0.26Resin是CAUCHO公司的产品,是一个非常流行的application server,对servlet

resin4 简单学习

?

1. Resin 4.0.26

Resin是CAUCHO公司的产品,是一个非常流行的application server,对servlet和JSP提供了良好的支持,性能也比较优良,resin自身采用JAVA语言开发。

2.下载地址

http://www.caucho.com/download/

一同下载pdf文件,安装参考。

?

3.安装

参考 文件 Resin-4.0-admin.pdf 。我以Windows为例。

前提,安装了JDK1.6或者更新版本。

首先添加环境变量RESIN_HOME ,其值为resin 的解压路径,比如:D:\Elan\resin4.0.26

4.启动方式1

双击resin.exe 出现控制台界面:

?resin4 容易学习

此时浏览器中输入:http://localhost:8080/? 页面如下表示安装成功:

?

5. 启动方式2

双击 bin/start.bat 窗口会闪过。输入http://localhost:8080/?也可查看。

停止时,需要双击stop.bat

6.设置为系统服务

不好意思我还木有研究出来

7.修改端口

打开conf/resin.properties 文件,找到

# Set HTTP and HTTPS portshttp          : 8080# https         : 8443

?

修改8080为你定义的端口

8.关于resin.propertiesresin4 容易学习
# resin.properties - configuration variable values## See resin.xml, cluster-default.xml, and health.xml for full configuration.# Any variable defined by ${...} can be set as a property in this file.
resin4 容易学习

?

有这段话可以看出,本文件是对其它文件中用到的参数的设置

9.部署应用

修改conf/resin.xml 文件,找到如下代码,并列加入你需要部署的app路径。

resin4 容易学习
      <web-app id="/" root-directory="webapps/ROOT"/>           <resin:if test="${resin_doc}">        <web-app id="/resin-doc" root-directory="${resin.root}/doc/resin-doc"/>      </resin:if>
resin4 容易学习

?

比如下面代码,ssh为我加的。id表示上下文路径,后面的root-directory为应用路径。当然你可以直接将应用放到webapps目录下,和tomcat一样的。

resin4 容易学习
<host id="" root-directory=".">      <!--         - webapps can be overridden/extended in the resin.xml        -->      <web-app id="/" root-directory="webapps/ROOT"/>           <resin:if test="${resin_doc}">        <web-app id="/resin-doc" root-directory="${resin.root}/doc/resin-doc"/>      </resin:if>       <web-app id="/ssh" root-directory="D:/Elan/EclipseWork-ssh/ssh/WebRoot"/> </host> 
resin4 容易学习

?

热点排行