运行环境:JBoss EAP 6.3.0
默认情况下,EAP 仅可通过127.0.0.1和localhost来访问,如果想要通过本机配置所有IP可访问的需要做以下配置:
1. standalone 模式
修改standalone.xml文件,
(1)把 jboss.bind.address.management:127.0.0.1改为 jboss.bind.address.management:0.0.0.0。
(2)把 jboss.bind.address:127.0.0.1改为 jboss.bind.address:0.0.0.0。
<interfaces>
<interface name="management">
<inet-address value="${jboss.bind.address.management:0.0.0.0}"/>
</interface>
<interface name="public">
<inet-address value="${jboss.bind.address:0.0.0.0}"/>
</interface>
<interface name="unsecure">
<inet-address value="${jboss.bind.address.unsecure:127.0.0.1}"/>
</interface>
</interfaces>
2. domain 模式
修改host.xml文件,
(1)把 jboss.bind.address.management:127.0.0.1改为 jboss.bind.address.management:0.0.0.0。
(2)把 jboss.bind.address:127.0.0.1改为 jboss.bind.address:0.0.0.0。
<interfaces>
<interface name="management">
<inet-address value="${jboss.bind.address.management:0.0.0.0}"/>
</interface>
<interface name="public">
<inet-address value="${jboss.bind.address:0.0.0.0}"/>
</interface>
<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>
参考文献:
1. http://www.minunix.com/2013/08/jboss-as7-01/
默认情况下,EAP 仅可通过127.0.0.1和localhost来访问,如果想要通过本机配置所有IP可访问的需要做以下配置:
1. standalone 模式
修改standalone.xml文件,
(1)把 jboss.bind.address.management:127.0.0.1改为 jboss.bind.address.management:0.0.0.0。
(2)把 jboss.bind.address:127.0.0.1改为 jboss.bind.address:0.0.0.0。
<interfaces>
<interface name="management">
<inet-address value="${jboss.bind.address.management:0.0.0.0}"/>
</interface>
<interface name="public">
<inet-address value="${jboss.bind.address:0.0.0.0}"/>
</interface>
<interface name="unsecure">
<inet-address value="${jboss.bind.address.unsecure:127.0.0.1}"/>
</interface>
</interfaces>
2. domain 模式
修改host.xml文件,
(1)把 jboss.bind.address.management:127.0.0.1改为 jboss.bind.address.management:0.0.0.0。
(2)把 jboss.bind.address:127.0.0.1改为 jboss.bind.address:0.0.0.0。
<interfaces>
<interface name="management">
<inet-address value="${jboss.bind.address.management:0.0.0.0}"/>
</interface>
<interface name="public">
<inet-address value="${jboss.bind.address:0.0.0.0}"/>
</interface>
<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>
参考文献:
1. http://www.minunix.com/2013/08/jboss-as7-01/
没有评论:
发表评论