Installation documentation is sparse on the Wildfly site. This document and this video had some useful information. Installing Wildfly 10 on Debian/Ubuntu has useful information about the practical aspects of deploying a Wildfly server.
- Install Wildfly to /opt or another location of your choice.
- Copy the wildfly.conf file supplied with Wildfly (probably in docs/contrib/scripts/init.d or similar) to /etc/default
- The wildfly.conf file can be left largely as supplied mostly is overridden by default options in the init.d startup script (see below). However some notes:
- JAVA_HOME is the location from which the Java executable is bin/java. So if your Java executable is /usr/bin/java, your JBOSS_HOME is /usr
- For external use (client is not on the same computer as the server):
- * Open ports 8080 and 9990 in the firewall of your server
- The default installation will bind only to localhost (127.0.0.1), so it will not respond to any external interfaces. To change this, specify the -b option when Wildfly starts up. This can be configured with the -b option by adding the line JBOSS_OPTS="-b 0.0.0.0" to wildfly.conf. WIldfly will then listen on its default port (8080) to all interfaces.
- Also add -bmanagement 0.0.0.0 to JBOSS_OPTS to allow Wildfly to listen to all interfaces for its management console (:9090/management)
- Copy the wildfly-init-redhat.sh file to /etc/init.d/wildfly (or use its Debian equivalent). This file can be left as-is.
- Add Wildfly to the services list with chkconfig as in the guide above.
- Start Wildfly with service wildfly start and check it is running with service wildfly status or systemctl status wildfly