DBMNG数据库管理与应用

抓住自己最有兴趣的东西,由浅入深,循序渐进地学……
当前位置:首页 > 服务器配置 > Resin

resin-4 启动多个实例


<cluster id="jd">

    <server-default>

      <jvm-arg>-Xmx512m</jvm-arg>

      <jvm-arg>-Xms512m</jvm-arg>

      <jvm-arg>-verbosegc</jvm-arg>

    </server-default>

    <server id="jd1" address="127.0.0.1" port="6808">

      <http port="9040"/>

    </server>

    <host id="" root-directory=".">

      <web-app id="/" root-directory="/opt/deploy/jd"/>

    </host>

  </cluster>

 

  <cluster id="td">

    <server-default>

      <jvm-arg>-Xmx512m</jvm-arg>

      <jvm-arg>-Xms512m</jvm-arg>

      <jvm-arg>-verbosegc</jvm-arg>

    </server-default>

    <server id="td1" address="127.0.0.1" port="6809">

      <http port="9050"/>

    </server>

    <host id="" root-directory=".">

      <web-app id="/" root-directory="/opt/deploy/jd"/>

    </host>

  </cluster>



这样,就在本机的9040,9050端口分别启动了一个resin实例。类似于启动了2个resin


启动命令为:


./resinctl start-all


或者一个一个启动


 ./resinctl -server jd1 start


 ./resinctl -server td1 start



关闭命令为:


./resinctl shutdown


本站文章内容,部分来自于互联网,若侵犯了您的权益,请致邮件chuanghui423#sohu.com(请将#换为@)联系,我们会尽快核实后删除。
Copyright © 2006-2023 DBMNG.COM All Rights Reserved. Powered by DEVSOARTECH            豫ICP备11002312号-2

豫公网安备 41010502002439号