RESIN安装完成之后,修改resin.conf配置文件增加以下内容
<server id="app-a" address="127.0.0.1" port="6800">
<watchdog-jvm-arg>-Dcom.sun.management.jmxremote</watchdog-jvm-arg>
<watchdog-port>6600</watchdog-port>
<http port="8080"/>
</server>
<server id="app-b" address="127.0.0.1" port="6801">
<watchdog-jvm-arg>-Dcom.sun.management.jmxremote</watchdog-jvm-arg>
<watchdog-port>6601</watchdog-port>
<http port="8081"/>
</server>
具体配置方式参考resin-doc中的watch-dog章节
配置完成后启动方式:
Httpd.sh –server app-a start
app-a 为server id
本文介绍了如何在RESIN中配置watchdog功能,并通过修改resin.conf文件来启用JMX远程管理和HTTP服务监听。提供了具体的配置示例及启动命令。
163

被折叠的 条评论
为什么被折叠?



