将JBoss AS 7绑定到所有接口 [英] Binding JBoss AS 7 to all interfaces

查看:87
本文介绍了将JBoss AS 7绑定到所有接口的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用./standalone.sh在独立模式下运行JBoss AS7。这将JBOSS绑定到localhost。有没有办法将它绑定到所有主机,我的意思是0.0.0.0。

I'm running JBoss AS7 in a standalone mode using ./standalone.sh. This binds JBOSS to only localhost. Is there a way to bind it to all the hosts, I mean 0.0.0.0.

旧版本有-b选项传递0.0.0.0,我可以'找到在这里使用的任何选项。

The older versions had the -b option to pass 0.0.0.0, I can't find any options to use over here.

推荐答案

编辑 standalone / configuration / standalone.xml 和插入标签任意地址而不是绑定到127.0.0.1的 inet-address - 示例:

Edit standalone/configuration/standalone.xml and insert the tag any-address instead of inet-address bound to 127.0.0.1 - Example:

<interfaces>
    <interface name="management">
        <inet-address value="127.0.0.1"/>
    </interface>
    <interface name="public">
        <any-address/>
    </interface>
</interfaces>

在公共界面中,我更改了原来的 inet-address 使用任意地址。重新启动后,您将能够通过网络浏览JBoss端口8080.

In the public interface, I've changed the original inet-address with any-address. After restarting, you'll be able to browse JBoss port 8080 over the network.

这篇关于将JBoss AS 7绑定到所有接口的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆