Jboss下面只能通过127.0.0.1或者localhost访问

最近使用Jboss部署项目,发现:Jboss下面只能通过127.0.0.1或者localhost访问。版本:jboss7.



解决办法:

在jboss安装目录下面找到: ..\standalone\configuration\standalone.xml修改配置:

<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>

<interface name="unsecure">

<inet-address value="${jboss.bind.address.unsecure:127.0.0.1}"/>

</interface>

</interfaces>

改为:

<interfaces>

<interface name="management">

<inet-address value="${jboss.bind.address.management:你主机的ip}"/>

</interface>

<interface name="public">

<inet-address value="${jboss.bind.address:你主机的ip}"/>

</interface>

<interface name="unsecure">

<inet-address value="${jboss.bind.address.unsecure:你主机的ip}"/>

</interface>

</interfaces>


你可能感兴趣的:(jboss)