【问题标题】:how to set jboss.bind.address.management and jboss.bind.address.unsecure to the same value as jboss.bind.address?如何将 jboss.bind.address.management 和 jboss.bind.address.unsecure 设置为与 jboss.bind.address 相同的值?
【发布时间】:2013-03-19 00:55:37
【问题描述】:

JBoss 7.1.1.Final 问题:

有什么方法可以将 jboss.bind.address.management 和 jboss.bind.address.unsecure 设置为与 jboss.bind.address 相同的值,而无需在standalone.xml中硬编码或将它们作为命令行参数传递?

【问题讨论】:

    标签: jboss bind ip-address


    【解决方案1】:

    接口地址接受表达式。默认值如下所示:

    <interfaces>
        <interface name="management">
            <inet-address value="${jboss.bind.address.management:127.0.0.1}"/>
        </interface>
        <interface name="public">
            <inet-address value="${jboss.bind.address:127.0.0.1}"/>
        </interface>
        <!-- TODO - only show this if the jacorb subsystem is added  -->
        <interface name="unsecure">
            <!-- Used for IIOP sockets in the standard configuration.
                 To secure JacORB you need to setup SSL -->
            <inet-address value="${jboss.bind.address.unsecure:127.0.0.1}"/>
        </interface>
    </interfaces>
    

    由于它们是表达式,因此可以轻松更改为使用相同的属性值,如下所示:

    <interfaces>
        <interface name="management">
            <inet-address value="${jboss.bind.address:127.0.0.1}"/>
        </interface>
        <interface name="public">
            <inet-address value="${jboss.bind.address:127.0.0.1}"/>
        </interface>
        <!-- TODO - only show this if the jacorb subsystem is added  -->
        <interface name="unsecure">
            <!-- Used for IIOP sockets in the standard configuration.
                 To secure JacORB you need to setup SSL -->
            <inet-address value="${jboss.bind.address:127.0.0.1}"/>
        </interface>
    </interfaces>
    

    【讨论】:

    • 我不喜欢 JBoss 使用的语言。它应该是“子网接口”或“IP 地址”,而不是该术语的混合。将接口称为“地址”确实令人困惑。
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2020-07-02
    • 2021-07-13
    • 1970-01-01
    • 1970-01-01
    • 2014-01-14
    相关资源
    最近更新 更多