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

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

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/ /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:}"/>


<interface name="public">

Now let’s restart Wildfly

service wildfly restart

Configuring the Wildfly Administration Console


<interface name="management">
  <inet-address value="${}"/>


<interface name="management">

Comments 7

  • 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

  • I don’t know about Ubuntu, but on the Debian and wildfly version 10 better create executable wildfly with symbol link. Because Wildfly need the file windfly.conf inside the folder contrib/script/init.d

  • Excelente article.

Leave a Reply

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

This site uses Akismet to reduce spam. Learn how your comment data is processed.