码迷,mamicode.com
首页 > 其他好文 > 详细

resin-4 启动多个实例

时间:2015-06-10 21:06:45      阅读:357      评论:0      收藏:0      [点我收藏+]

标签:

不废话了,直接上代码

<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

resin-4 启动多个实例

标签:

原文地址:http://blog.csdn.net/mn960mn/article/details/46446091

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!