<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