服务器

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 出现控制台界面:

 

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

 

5.        启动方式2

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

停止时,需要双击stop.bat

6.        设置为系统服务

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

7.        修改端口

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

# Set HTTP and HTTPS ports

http          : 8080

# https         : 8443

 

修改8080为你定义的端口

8.        关于resin.properties

复制代码
# 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.
复制代码

 

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

9.        部署应用

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

复制代码
      <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>
复制代码

 

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

复制代码
<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>

 出处于http://www.cnblogs.com/lan0725/archive/2012/03/26/2418006.html
  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值