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>
即可
本文详细介绍了如何在JBoss AS7中修改默认监听地址为真实IP,解决无法通过真实IP访问的问题。具体操作包括在配置文件中将公共接口地址更改为any-address。
1942

被折叠的 条评论
为什么被折叠?



