我正在使用JBoss AS 7,并尝试使用IP (从intranet中的计算机)连接到我的应用程序。它不起作用。如果我从拥有服务器的计算机上进行测试,如果我通过本地主机(http://localhost:8080/MySystem....)进行测试,则可以看到系统正在运行,但如果我尝试使用IP (http://:8080/MySystem....),则无法看到系统正在运行。
有什么帮助吗?
发布于 2012-04-19 22:00:34
答案是编辑standalone.xml并插入标记any-address而不是绑定到127.0.0.1的inet-address
<interfaces>
<interface name="management">
<inet-address value="127.0.0.1"/>
</interface>
<interface name="public">
<any-ipv4-address/>
</interface>
</interfaces>发布于 2012-05-11 00:44:37
我在standalone.xml中将127.0.0.1 (本地主机)更改为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>
<!-- TODO - only show this if the jacorb subsystem is added -->
<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:0.0.0.0}"/>
</interface>
</interfaces>发布于 2012-04-13 06:18:35
您是否在配置文件中配置了IP地址?
在不配置ip地址的情况下启动jboss会将jboss的默认地址设置为适合开发或生产服务器的localhost,其中apache用作jboss的代理并驻留在同一台机器上。
设置JBoss的ip地址:
To a specific IP address
run.sh -b 10.62.31.31
To localhost or the IP address assigned to the server
run.sh -b 0.0.0.0您也可以在 section下的配置文件中进行更改。
https://stackoverflow.com/questions/10132657
复制相似问题