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>
  • 相关阅读:
    nyoj 420
    nyoj 46 最少乘法次数
    ACM退役贴
    nyoj 187 快速查找素数
    多校4题目之Trouble
    nyoj 56 阶乘因式分解(一)
    nyoj 70 阶乘因式分解(二)
    nyoj 151 Biorhythms
    nyoj 97 兄弟郊游问题
    多校十 hdoj4393 Throw nails
  • 原文地址:https://www.cnblogs.com/LiuB/p/6761080.html
Copyright © 2011-2022 走看看