`
sillycat
  • 浏览: 2577658 次
  • 性别: Icon_minigender_1
  • 来自: 成都
社区版块
存档分类
最新评论

Server Deployment - Resin

阅读更多
Server Deployment - Resin

Try to install resin on my local server. Deploy my instances on ubuntu as the same as tomcat/jetty.
1. Install resin
>tar zxvf resin-4.0.18.tar.gz
>cd resin-4.0.18
>./configure --prefix=/home/luohua/tools/resin
>sudo make
>sudo make install

2. My shell scripts
start-resin1.sh
#!/bin/sh

RESIN_HOME="/home/luohua/tools/resin"
RESIN_BASE="/home/luohua/tools/shellscript/resin1"
export RESIN_HOME RESIN_BASE

cd ${RESIN_HOME}
java -jar lib/resin.jar -conf "${RESIN_BASE}/resin.xml" -server resin1 start

start-resin2.sh is almost the same as start-resin1.sh, so was start-resin3.sh
#!/bin/sh

RESIN_HOME="/home/luohua/tools/resin"
RESIN_BASE="/home/luohua/tools/shellscript/resin2"
export RESIN_HOME RESIN_BASE

cd ${RESIN_HOME}
java -jar lib/resin.jar -conf "${RESIN_BASE}/resin.xml" -server resin2 start

3. Configuration files
resin1/resin.xml
  <cluster id="resin1">
    <server id="resin1" address="127.0.0.1" port="6801">
        <http id="" port="8083"/>
    </server>

    <host id="" root-directory=".">
      <web-app id="/easymarket" root-directory="/home/luohua/tools/shellscript/apps/easymarket"/>
    </host>
  </cluster>
resin1/app-default.xml is copied from the resin installed directory.

resin2/resin.xml:
<cluster id="resin2">
    <server id="resin2" address="127.0.0.1" port="6802">
        <http id="" port="8084"/>
    </server>

    <host id="" root-directory=".">
      <web-app id="/easymarket" root-directory="/home/luohua/tools/shellscript/apps/easymarket"/>
    </host>
  </cluster>
resin3/resin.xml:
  <cluster id="resin3">
    <server id="resin3" address="127.0.0.1" port="6803">
        <http id="" port="8085"/>
    </server>

    <host id="" root-directory=".">
      <web-app id="/easymarket" root-directory="/home/luohua/tools/shellscript/apps/easymarket"/>
    </host>
  </cluster>

4. Test these URLs
http://localhost:8083/easymarket
http://localhost:8084/easymarket
http://localhost:8085/easymarket

references:
http://www.caucho.com/
http://caucho.com/resin-4.0/admin/starting-resin.xtp
http://www.vinceruan.info/java/deploy_muti_resin_4_one_server/
http://rqyyy.iteye.com/blog/314928




分享到:
评论

相关推荐

    Mastering+Resin.rar

    It offers a detailed look at all flavors of Resin 3.x, including development and deployment of Java applications using these cutting-edge servers. Table of Contents Mastering Resin Introduction...

    resion容器

    Resin容器,全称为Resin Application Server,是由Caucho Technology公司开发的一款高性能、轻量级的Java应用...下载并安装Resin-pro-4.0.53版本,你可以体验到它的高效和便捷,同时享受到丰富的Java应用服务功能。

    eclipse resin配置

    - 在新建的Resin Server上右键,选择“Properties”。 - 转到“Deployment”选项卡。 - 添加项目到Deployment列表中,以便在启动服务器时自动部署。 #### 三、Resin配置文件详解 ##### 1. resin.conf配置文件 - *...

    Javaweb resin4如何配置端口虚拟目录

    Javaweb中的Resin是一个高性能的Web...而在resin.xml中,需要定义cluster,添加&lt;web-app&gt;标签来配置具体的虚拟目录,并通过&lt;server-default&gt;来设置特定端口。这样的配置方式使得Resin在管理多个Web应用时既灵活又高效。

    在Eclipse下部署tomcat

    1. **Web应用服务器安装**:这里列出了几种常见的Web应用服务器,包括Tomcat、Resin、WebSphere和WebLogic。 2. **将MyEclipse与Tomcat相结合**:此步骤是本文的重点,详细介绍了如何配置MyEclipse以便与Tomcat集成...

Global site tag (gtag.js) - Google Analytics