jboss AS7默认和之前的版本一样,只监听127.0.0.1,用真实ip是不能访问的。 对于以前的版本我们可以在启动时运行run -b xxx.xxx.xxx.xxx来解决这个问题,但在AS7中,需要修改standalone\configuration\standalone.xml,找到
<interface name="public">
<inet-address value="127.0.0.1"/>
</interface>
改为
<interface name="public">
<any-address/>
</interface>
即可