zoukankan      html  css  js  c++  java
  • 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 esin4.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>
  • 相关阅读:
    python检测服务器端口
    nodejs创建文件
    Git:代码冲突常见解决方法
    爬虫常用库介绍
    关于git提示“warning: LF will be replaced by CRLF”终极解答
    linux系统磁盘使用情况
    tkinter拦截关闭事件
    如何在python中调用C语言代码
    spring in action学习笔记十六:配置数据源的几种方式
    spring in action学习笔记十五:配置DispatcherServlet和ContextLoaderListener的几种方式。
  • 原文地址:https://www.cnblogs.com/deepstone/p/3372590.html
Copyright © 2011-2022 走看看