简体   繁体   English

如何在JBOSS中修改standalone.xml,使其从外部可见?

[英]How to modify standalone.xml in JBOSS so that it is visible from outside?

I have an Ubuntu 14.04 image and i have installed JBOSS. 我有一个Ubuntu 14.04映像,并且已经安装了JBOSS。 I have a static ip and i want to access the admin console of JBOSS from another pc. 我有一个静态IP,我想从另一台PC访问JBOSS的管理控制台。 I have changed standalone.xml like this: 我已经像这样更改了standalone.xml:

    <interface name="management">
        <inet-address value="${jboss.bind.address.management:128.x.x.x}"/>
    </interface>
    <interface name="public">
        <inet-address value="${jboss.bind.address:128.x.x.x}"/>
    </interface>
    <interface name="unsecure">
        <inet-address value="${jboss.bind.address.unsecure:128.x.x.x}"/>
    </interface>

When i start JBOSS everything seems ok, but when i try to access JBOSS from my computer ( http://128.xxx:9990/console ) i get that the website is not available. 当我启动JBOSS时,一切似乎都很好,但是当我尝试从计算机( http://128.xxx:9990/console )访问JBOSS时,我发现该网站不可用。 I can ping 128.199.35.98, which the ip of the ubuntu server, where JBOSS is installed. 我可以ping 128.199.35.98,即安装了JBOSS的ubuntu服务器的IP。

When changing the address and or port the server listens on you need to ensure the firewall allows that port to be accessed. 更改服务器侦听的地址和/或端口时,需要确保防火墙允许访问该端口。

Something like 就像是

sudo iptables -A INPUT -p tcp --dport 9990 -j ACCEPT

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM