Installing Wildfly 10 on Debian/Ubuntu

The instructions below are for Debian, but with Ubuntu you would also need to use ‘sudo’ if you are not running as root

First you need to install Java, if you have not already. This page has instructions on how to install Java 1.8 using apt-get

Installing Oracle Java 8 on Debian/Ubuntu

Now let’s get to installing Wildfly 10

We are going to download the zip directly to the /opt folder, and then unzip it.

cd /opt
wget http://download.jboss.org/wildfly/10.1.0.Final/wildfly-10.1.0.Final.zip
unzip wildfly-10.1.0.Final.zip

Next we will create a symbolic link to access wildfly-10.1.0.Final as just ‘wildfly’

ln -s /opt/wildfly-10.1.0.Final /opt/wildfly

Next let’s create a group and user for our Wildfly installation

addgroup wildfly
useradd -g wildfly wildfly

Now let’s change our Wildfly directory to the user we created.

chown -R wildfly:wildfly /opt/wildfly-10.1.0.Final

Now let’s copy the init scripts

cp /opt/wildfly/docs/contrib/scripts/init.d/wildfly-init-debian.sh /etc/init.d/wildfly
chown root:root /etc/init.d/wildfly
chmod ug+x /etc/init.d/wildfly

Now we can start and stop Wildfly using the following command

/etc/init.d/wildfly start
/etc/init.d/wildfly stop


Enabling remote access to Wildfly

cd /opt/wildfly/standalone/configuration
nano standalone.xml

Now you must change

<interface name="public">
    <inet-address value="${jboss.bind.address:127.0.0.1}"/>
</interface>

to

<interface name="public">
    <any-address/>
</interface>

Now let’s restart Wildfly

service wildfly restart

Configuring the Wildfly Administration Console

Change

<interface name="management">
  <inet-address value="${jboss.bind.address.management:127.0.0.1}"/>
</interface>

to

<interface name="management">
  <any-address/>
</interface>

Comments 4

  • Thanks, this was very helpfull. I had one problem, as the service wouldn’t start. Instead I got the error

    “Starting wildfly (via systemctl): wildfly.serviceFailed to start wildfly.service: Unit wildfly.service failed to load: No such file or directory.”

    This was solved by running:
    update-rc.d wildfly defaults

  • Thanx, very helpful. Working well.

  • Remember to enable via systemctl before service wildfly restart
    systemctl enable wildfly

Leave a Reply

Your email address will not be published. Required fields are marked *