zoukankan      html  css  js  c++  java
  • Resin4 自定义端口

    Resin4 自定义端口

    1. Resin4配置文件发生了较大变化,分为:

    • app-default.xml  web应用配置
    • cluster-default.xml  集群配置
    • health.xml -- 非pro版不支持  
    • resin.xml
    • resin.properties  会被修改的变量

    2. Resin4启动默认有三个端口:

    • watch dog 用的6600 (配置文件里没有)
    • Http端口:8080 (对应app.http)
    • Server监听端口: 127.0.0.1:6800 (对应app_servers )

    说明:单个Resin不管同时配置几个应用,每次启动Resin之后,只会启动一个WatchDog监听,kill掉WatchDog后,所有的实例都会停止,WatchDog运行中,kill掉某个实例后,该实例会自动重启。

    经验证:只要WatchDog在运行中,修改server端口,不需要重启resin。

    3. 自定义端口(resin.properties)

      resin.properties中修改server端口  

    app_servers      : 127.0.0.1:6801

      resin.properties中修改http端口   

    app.http : 8081

      resin.xml中修改WatchDog

    <server-multi id-prefix="app-" address-list="${app_servers}" port="6800">
        <watchdog-port>6601</watchdog-port>
    </server-multi>
  • 相关阅读:
    NOI2021游记-记最后一段日子
    7.20 ZROI-Day7模拟赛
    7.19 ZROI-Day6模拟赛
    7.18 ZROI-Day5模拟赛
    7.17 ZROI-Day4模拟赛
    7.16 ZROI-DAY3 模拟赛
    7.15 ZROI-DAY2 模拟赛
    7.13 ZROI-DAY1赛后总结
    7.9模拟赛赛后总结
    7.7模拟赛赛后总结
  • 原文地址:https://www.cnblogs.com/LiuB/p/6761080.html
Copyright © 2011-2022 走看看