简体   繁体   中英

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. I have a static ip and i want to access the admin console of JBOSS from another pc. I have changed standalone.xml like this:

    <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. I can ping 128.199.35.98, which the ip of the ubuntu server, where JBOSS is installed.

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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