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\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>

    今天就研究了这么一点点,网上关于resin4的资料简直是太少了。

  • 相关阅读:
    CC2540-BLE4.0 学历笔记1之串口体验
    cc2530的PWM实现
    用qt写的一个简单到不能在简单的上位机
    在Kubuntu14.04中安装小企鹅输入法
    初始化umi项目
    工具杂记(三) -- zookeeper
    工具杂记(二) -- Centos7
    工具杂记(一) -- vagrant
    (一)Docker导学
    JVM随笔(二)之搜索类
  • 原文地址:https://www.cnblogs.com/lan0725/p/2418006.html
Copyright © 2011-2022 走看看