~stick/stma.is

3ff47887c365d8dfbdcec4b71b2fd0bccb25c380 — Stick 2 months ago 2eac0d3
fix formatting on Wild**Fly** 12 post
1 files changed, 5 insertions(+), 5 deletions(-)

M content/stick/2018-03-05-Installing-Wildfly-12.md
M content/stick/2018-03-05-Installing-Wildfly-12.md => content/stick/2018-03-05-Installing-Wildfly-12.md +5 -5
@@ 6,11 6,11 @@ author = "Stick"
tags = [ "software",]
+++
## Get Java 8
Most of what I've seen online says to use Oracle Java 8, but as far as I can tell, Wild**Fly** 11 [runs fine](https://developer.jboss.org/message/979680#979680 "WildFly 11 and OpenJDK 9") on [OpenJDK](http://openjdk.java.net/). Also as far as I can tell, you only need the headless version of OpenJDK. Most of the installation information is available in the [Wild**Fly** docs](http://docs.wildfly.org/Getting_Started_Guide.html "Getting Started Guide").
Most of what I've seen online says to use Oracle Java 8, but as far as I can tell, WildFly 11 [runs fine](https://developer.jboss.org/message/979680#979680 "WildFly 11 and OpenJDK 9") on [OpenJDK](http://openjdk.java.net/). Also as far as I can tell, you only need the headless version of OpenJDK. Most of the installation information is available in the [WildFly docs](http://docs.wildfly.org/Getting_Started_Guide.html "Getting Started Guide").
* Arch Linux: unneeded (the [AUR package](https://github.com/nstickney/wildfly-aur "nstickney/wildfly-aur") takes care of this dependency)
* CentOS 7: `sudo yum install java-1.8.0-openjdk-headless`

## Get Wild**Fly** 12
## Get WildFly 12

### Arch Linux
1. `git clone https://github.com/nstickney/wildfly-aur`


@@ 23,7 23,7 @@ Most of what I've seen online says to use Oracle Java 8, but as far as I can tel
1. `sudo ln -s /opt/wildfly-12.0.0.Final /opt/wildfly`


## Create the Wild**Fly** user and group
## Create the WildFly user and group
On Arch Linux, the steps below are taken care of by the installation scripts. These steps are required on CentOS 7 (and probably other distributions).
1. `sudo groupadd -r -g 505 wildfly`
1. `sudo useradd -r -u 505 -g wildfly -d /opt/wildfly -s /sbin/nologin`


@@ 34,7 34,7 @@ On Arch Linux, the steps below are taken care of by the installation scripts. Th
1. `sudo cp /opt/wildfly/docs/contrib/scripts/systemd/wildfly.service /etc/systemd/system/`
1. `sudo cp /opt/wildfly/docs/contrib/scripts/systemd/launch.sh /opt/wildfly/bin/ && sudo chmod +x /opt/wildfly/bin/launch.sh`

I prefer to have the Wild**Fly** management interface also listen on the network, at least in standalone mode.
I prefer to have the WildFly management interface also listen on the network, at least in standalone mode.
* `sudo vim /etc/wildfly/wildfly.conf`

```sh


@@ 71,7 71,7 @@ fi
From the [Wildfly Docs](https://docs.jboss.org/author/display/WFLY/Admin+Guide#AdminGuide-EnableSSL "Admin Guide: Enable SSL").

## Allow access through the host firewall
Wild**Fly** listens on ports 8080 (main) and 9990 (management) by default. If you enabled TLS in the previous step, it will listen on 8443 (main) and 9993 (management). I use the TLS ports below, so change that if you prefer other ports. You might also want to masquerade 8443 to 443, and redirect 80 to 443 using something like [nginx](https://nginx.org/ "nginx")....
WildFly listens on ports 8080 (main) and 9990 (management) by default. If you enabled TLS in the previous step, it will listen on 8443 (main) and 9993 (management). I use the TLS ports below, so change that if you prefer other ports. You might also want to masquerade 8443 to 443, and redirect 80 to 443 using something like [nginx](https://nginx.org/ "nginx")....

### CentOS 7
I use the setup described [here](2018-03-01-CentOS7-VirtualBox-Guest.md "CentOS7 VirtualBox Guest"); if you are using different zones, make changes as appropriate.