Resin4 自定義端口

1. Resin4配置文件發生了較大變化,分爲:web

  • app-default.xml  web應用配置
  • cluster-default.xml  集羣配置
  • health.xml -- 非pro版不支持  
  • resin.xml
  • resin.properties  會被修改的變量

2. Resin4啓動默認有三個端口:app

  • watch dog 用的6600 (配置文件裏沒有)
  • Http端口:8080 (對應app.http)
  • Server監聽端口: 127.0.0.1:6800 (對應app_servers )

說明:單個Resin無論同時配置幾個應用,每次啓動Resin以後,只會啓動一個WatchDog監聽,kill掉WatchDog後,全部的實例都會中止,WatchDog運行中,kill掉某個實例後,該實例會自動重啓。spa

經驗證:只要WatchDog在運行中,修改server端口,不須要重啓resin。code

 

3. 自定義端口(resin.properties)server

  resin.properties中修改server端口  xml

app_servers      : 127.0.0.1:6801

  resin.properties中修改http端口   blog

app.http : 8081

  resin.xml中修改WatchDogclass

<server-multi id-prefix="app-" address-list="${app_servers}" port="6800">
    <watchdog-port>6601</watchdog-port>
</server-multi>
相關文章
相關標籤/搜索