Step by Step to Install & Configure WildFly (JBoss) on Ubuntu 20.04

WildFly is a free & open source application server.It is also known as JBoss AS, or JBoss.WildFly is a Java web application platform,written in java.It provides a java platform with JVM extension & complate runtime environment.We can easily create & manage the databases.

There are few steps to install & configure WildFly (JBoss) on ubuntu:

Step 1: Update the system.

apt-get update

Step 2: Install Java.

apt-get install default-jdk

  • Check the Java version.

java -version

  • Here is the command output.

Step 3: Add a user & group for wildfly.

groupadd -r wildfly
useradd -r -g wildfly -d /opt/wildfly -s /sbin/nologin wildfly

Step 4: Download the WildFly using wget.

cd /tmp

  • Here is the command output.

  • Extract the downloaded file.

tar xvf wildfly-22.0.1.Final.tar.gz

  • Move the extracted folder to /opt/

mv wildfly-22.0.1.Final/ /opt/wildfly

  • Provide the following permission:

chown -RH wildfly: /opt/wildfly

Step 5: Create a folder.

mkdir -p /etc/wildfly

  • Copy the following files one place to another & provide executable permission to script files under /opt/wildfly/bin/ folder.

cp /opt/wildfly/docs/contrib/scripts/systemd/wildfly.conf /etc/wildfly/
cp /opt/wildfly/docs/contrib/scripts/systemd/ /opt/wildfly/bin/
sh -c 'chmod +x /opt/wildfly/bin/*.sh'
cp /opt/wildfly/docs/contrib/scripts/systemd/wildfly.service /etc/systemd/system/

Step 6: Start & Enable the WildFly service.

systemctl start wildfly.service
systemctl enable wildfly.service

  • Check the status of WildFly.

systemctl status wildfly.service

  • Here is the command output.

Step 7: Set the WildFly Admin login credentials.


  • Here is the command output.

  • Type a.
  • Provide a user-name & password.
  • Here is the output.

Step 8: Open the following port number on UFW firewall.

ufw allow 8080/tcp
ufw allow 9990/tcp

  • Here is the command output.

Step 9: Access the WildFly web-interface.


  • Here is the output.
  • Click on Administration console.

  • We are not able to login Wildfly admin console.

Configure & Manage the WildFly administrative console remotely.

Step 10: Open the /etc/wildfly/wildfly.conf file.

vim /etc/wildfly/wildfly.conf

  • Add the following line:

#WildFly Console bind

  • Here is the command output.

  • Run the following script to connect admin console.

sh /opt/wildfly/bin/ --connect

  • Here is the command output.

  • Open the launch script & edit the following lines:

vim /opt/wildfly/bin/

if [ "x$WILDFLY_HOME" = "x" ]; then
if [[ "$1" == "domain" ]]; then
$WILDFLY_HOME/bin/ -c $2 -b $3 -bmanagement $4
$WILDFLY_HOME/bin/ -c $2 -b $3 -bmanagement $4

Step 11: Restart the WildFly service.

systemctl restart wildfly.service

Step 12: Open the wildfly service file.

vim /etc/systemd/system/wildfly.service

  • Edit the following line:


  • Reload & Restart the WildFly service.

systemctl daemon-reload
systemctl restart wildfly.service

Step 13: Now Open the WildFly Admin console.


  • Here is the command output.
  • Provide the user-name & password.

  • Now WildFly Admin console is Ready.


Leave a Reply