JBoss7 局域网无法访问 解决方法
在standalone模式,修改/standalone/configuration/standalone.xml。如下
修改或新增一个interface。
<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>
<!-- added begin -->
<interface name="any">
<any-ipv4-address/>
</interface>
<!-- added end -->
</interfaces>
修改以下设置,即修改访问控制,由原来的127.0.0.1改为any ip
<!-- modify
<socket-binding-group name="standard-sockets" default-interface="public">
-->
<socket-binding-group name="standard-sockets" default-interface="any">
<socket-binding name="http" port="8080"/>
<socket-binding name="https" port="8443"/>
<socket-binding name="jmx-connector-registry" interface="management" port="1090"/>
<socket-binding name="jmx-connector-server" interface="management" port="1091"/>
<socket-binding name="jndi" port="1099"/>
<socket-binding name="osgi-http" interface="management" port="8090"/>
<socket-binding name="remoting" port="4447"/>
<socket-binding name="txn-recovery-environment" port="4712"/>
<socket-binding name="txn-status-manager" port="4713"/>
</socket-binding-group>
最后还要注意防火墙要设置为允许访问8080端口
以上我在JBoss7中测试成功
参考:嘻嘻哈哈的专栏