Installing WildFly 16.0.0 by Compiling Source Code
- Obtain the WildFly source code.
- Use a local browser to download the WildFly source code.
Download address: https://download.jboss.org/wildfly/16.0.0.Final/wildfly-16.0.0.Final.zip
- Copy the file to the /opt directory on the server.
If the server is connected to the Internet, you can run the wget command on the server to download the source code.
1cd /opt/
1wget https://download.jboss.org/wildfly/16.0.0.Final/wildfly-16.0.0.Final.zip --no-check-certificate
- Use a local browser to download the WildFly source code.
- Decompress the WildFly installation package.
1unzip wildfly-16.0.0.Final.zip
- Establish a soft link.
1ln -s /opt/wildfly-16.0.0.Final/ /opt/wildfly

The soft link is established because WildFly searches for resources in the /opt/wildfly directory during execution.
- Create a wildfly folder.
1mkdir /etc/wildfly - Copy files.
1\cp /opt/wildfly/docs/contrib/scripts/systemd/wildfly.conf /etc/wildfly/
1\cp /opt/wildfly/docs/contrib/scripts/systemd/launch.sh /opt/wildfly/bin/
1\cp /opt/wildfly/docs/contrib/scripts/systemd/wildfly.service /etc/systemd/system
- Change folder permissions.
1chmod +x /opt/wildfly/bin/*.sh
- Reload the configuration file.
1systemctl daemon-reload - Create the WildFly user group and user, and grant the /opt/wildfly/ permission to the WildFly user group and user.
1groupadd wildfly1useradd -g wildfly wildfly
1chown -RH wildfly: /opt/wildfly
Parent topic: Installing WildFly by Compiling Source Code