[root@server-1 ~]# wget http://download.jboss.org/wildfly/14.0.1.Final/wildfly-14.0.1.Final.tar.gz
--2018-12-23 04:21:57--  http://download.jboss.org/wildfly/14.0.1.Final/wildfly-14.0.1.Final.tar.gz
Resolving download.jboss.org (download.jboss.org)... 23.207.124.13
Connecting to download.jboss.org (download.jboss.org)|23.207.124.13|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 178343287 (170M) [application/x-gzip]
Saving to: ‘wildfly-14.0.1.Final.tar.gz’

100%[======================================>] 178,343,287  493KB/s   in 6m 16s 

2018-12-23 04:28:14 (464 KB/s) - ‘wildfly-14.0.1.Final.tar.gz’ saved [178343287/178343287]

[root@server-1 ~]# 


[root@server-1 ~]#
[root@server-1 ~]# tar -zxvf wildfly-14.0.1.Final.tar.gz
wildfly-14.0.1.Final/
wildfly-14.0.1.Final/domain/
wildfly-14.0.1.Final/domain/configuration/
wildfly-14.0.1.Final/domain/tmp/
wildfly-14.0.1.Final/domain/tmp/auth/
wildfly-14.0.1.Final/bin/
wildfly-14.0.1.Final/bin/client/
wildfly-14.0.1.Final/.installation/
wildfly-14.0.1.Final/modules/
wildfly-14.0.1.Final/modules/system/
wildfly-14.0.1.Final/modules/system/layers/
wildfly-14.0.1.Final/modules/system/layers/base/
wildfly-14.0.1.Final/modules/system/layers/base/gnu/
wildfly-14.0.1.Final/modules/system/layers/base/gnu/getopt/
wildfly-14.0.1.Final/modules/system/layers/base/gnu/getopt/main/
〜(省略)〜
wildfly-14.0.1.Final/welcome-content/index.html
wildfly-14.0.1.Final/welcome-content/jbosscommunity_logo_hori_white.png
wildfly-14.0.1.Final/welcome-content/wildfly_logo.png
wildfly-14.0.1.Final/welcome-content/wildfly.css
wildfly-14.0.1.Final/welcome-content/noredirect.html
wildfly-14.0.1.Final/welcome-content/favicon.ico
wildfly-14.0.1.Final/welcome-content/noconsole.html
wildfly-14.0.1.Final/welcome-content/bkg.gif
wildfly-14.0.1.Final/LICENSE.txt
[root@server-1 ~]# 
[root@server-1 ~]# mv wildfly-14.0.1.Final /opt/
[root@server-1 ~]# 
[root@server-1 ~]# ls -la /opt/
total 0
drwxr-xr-x.  3 root   root    34 Dec 23 04:34 .
dr-xr-xr-x. 17 root   root   224 Nov 16 01:01 ..
drwxrwxr-x. 12 centos centos 255 Sep  6 09:34 wildfly-14.0.1.Final
[root@server-1 ~]# 
[root@server-1 ~]# groupadd -g 1001 wildfly
[root@server-1 ~]# tail -n 1 /etc/group
wildfly:x:1001:
[root@server-1 ~]# 
[root@server-1 ~]# useradd -u 1001 -g 1001 wildfly
[root@server-1 ~]# tail -n 1 /etc/passwd
wildfly:x:1001:1001::/home/wildfly:/bin/bash
[root@server-1 ~]# 
[root@server-1 ~]# passwd wildfly
Changing password for user wildfly.
New password: 
Retype new password: 
passwd: all authentication tokens updated successfully.
[root@server-1 ~]# 
[root@server-1 ~]# chown -R wildfly:wildfly /opt/wildfly-14.0.1.Final
[root@server-1 ~]# 
[root@server-1 ~]# ls -la /opt/
total 0
drwxr-xr-x.  3 root    root     34 Dec 23 04:34 .
dr-xr-xr-x. 17 root    root    224 Nov 16 01:01 ..
drwxrwxr-x. 12 wildfly wildfly 255 Sep  6 09:34 wildfly-14.0.1.Final
[root@server-1 ~]# 
[root@server-1 ~]# cp /opt/wildfly-14.0.1.Final/bin/standalone.conf /opt/wildfly-14.0.1.Final/bin/standalone.conf.org
[root@server-1 ~]# 
[root@server-1 ~]# vi /opt/wildfly-14.0.1.Final/bin/standalone.conf
#JAVA_HOME="/opt/java/jdk"
JAVA_HOME="/usr/lib/jvm/java-1.8.0-openjdk-1.8.0.191.b12-1.el7_6.x86_64"
[root@server-1 ~]# cp /opt/wildfly-14.0.1.Final/standalone/configuration/standalone.xml /opt/wildfly-14.0.1.Final/standalone/configuration/standalone.xml.org
[root@server-1 ~]# 
[root@server-1 ~]# vi /opt/wildfly-14.0.1.Final/standalone/configuration/standalone.xml
        <subsystem xmlns="urn:jboss:domain:webservices:2.0">
            <wsdl-host>${jboss.bind.address:127.0.0.1}</wsdl-host>
		↓
            <wsdl-host>${jboss.bind.address:172.16.1.200}</wsdl-host>
        <interface name="management">
            <inet-address value="${jboss.bind.address.management:127.0.0.1}"/>
		↓
            <inet-address value="${jboss.bind.address.management:172.16.1.200}"/>
        <interface name="public">
            <inet-address value="${jboss.bind.address:127.0.0.1}"/>
		↓
            <inet-address value="${jboss.bind.address:172.16.1.200}"/>
[root@server-1 ~]# vi /lib/systemd/system/wildfly.service
[Unit]
Description=WildFly Server
After=httpd.service
StartLimitIntervalSec=0

[Service]
Type=simple
Restart=always
RestartSec=1
User=root
ExecStart=/opt/wildfly-14.0.1.Final/bin/standalone.sh
[root@server-1 ~]# systemctl daemon-reload
[root@server-1 ~]# 
[root@server-1 ~]# chown -R wildfly:wildfly /lib/systemd/system/wildfly.service  
[root@server-1 ~]# 
[root@server-1 ~]# ls -la /lib/systemd/system/wildfly.service -rw-r--r--. 1 wildfly wildfly 193 Dec 23 13:06 /lib/systemd/system/wildfly.service
[root@server-1 ~]# 
[root@server-1 ~]# systemctl start wildfly.service
[root@server-1 ~]# 
[root@server-1 ~]# systemctl status wildfly.service
● wildfly.service - WildFly Server
   Loaded: loaded (/usr/lib/systemd/system/wildfly.service; static; vendor preset: disabled)
   Active: active (running) since Sun 2018-12-23 13:08:21 JST; 3s ago
 Main PID: 4057 (standalone.sh)
   CGroup: /system.slice/wildfly.service
           ├─4057 /bin/sh /opt/wildfly-14.0.1.Final/bin/standalone.sh
           └─4100 /usr/lib/jvm/java-1.8.0-openjdk-1.8.0.191.b12-1.el7_6.x86_6...

Dec 23 13:08:21 server-1.novalocal systemd[1]: Started WildFly Server.
Dec 23 13:08:22 server-1.novalocal standalone.sh[4057]: =====================...
Dec 23 13:08:22 server-1.novalocal standalone.sh[4057]: JBoss Bootstrap Envir...
Dec 23 13:08:22 server-1.novalocal standalone.sh[4057]: JBOSS_HOME: /opt/wild...
Dec 23 13:08:22 server-1.novalocal standalone.sh[4057]: JAVA: /usr/lib/jvm/ja...
Dec 23 13:08:22 server-1.novalocal standalone.sh[4057]: JAVA_OPTS:  -server -...
Dec 23 13:08:22 server-1.novalocal standalone.sh[4057]: =====================...
Hint: Some lines were ellipsized, use -l to show in full.
[root@server-1 ~]# 
[root@server-1 ~]# systemctl enable wildfly.service
[root@server-1 ~]# 
[root@server-1 ~]# /opt/wildfly-14.0.1.Final/bin/add-user.sh

What type of user do you wish to add? 
 a) Management User (mgmt-users.properties) 
 b) Application User (application-users.properties)
(a): 

Enter the details of the new user to add.
Using realm 'ManagementRealm' as discovered from the existing property files.
Username : wildfly
Password recommendations are listed below. To modify these restrictions edit the add-user.properties configuration file.
 - The password should be different from the username
 - The password should not be one of the following restricted values {root, admin, administrator}
 - The password should contain at least 8 characters, 1 alphabetic character(s), 1 digit(s), 1 non-alphanumeric symbol(s)
Password : 
WFLYDM0102: Password should have at least 1 non-alphanumeric symbol.
Are you sure you want to use the password entered yes/no? yes
Re-enter Password : 

 * Error * 
WFLYDM0026: The passwords do not match.

Password recommendations are listed below. To modify these restrictions edit the add-user.properties configuration file.
 - The password should be different from the username
 - The password should not be one of the following restricted values {root, admin, administrator}
 - The password should contain at least 8 characters, 1 alphabetic character(s), 1 digit(s), 1 non-alphanumeric symbol(s)
Password : 
WFLYDM0102: Password should have at least 1 non-alphanumeric symbol.
Are you sure you want to use the password entered yes/no? yes
Re-enter Password : 
What groups do you want this user to belong to? (Please enter a comma separated list, or leave blank for none)[  ]: 
About to add user 'wildfly' for realm 'ManagementRealm'
Is this correct yes/no? yes
Added user 'wildfly' to file '/opt/wildfly-14.0.1.Final/standalone/configuration/mgmt-users.properties'
Added user 'wildfly' to file '/opt/wildfly-14.0.1.Final/domain/configuration/mgmt-users.properties'
Added user 'wildfly' with groups  to file '/opt/wildfly-14.0.1.Final/standalone/configuration/mgmt-groups.properties'
Added user 'wildfly' with groups  to file '/opt/wildfly-14.0.1.Final/domain/configuration/mgmt-groups.properties'
Is this new user going to be used for one AS process to connect to another AS process? 
e.g. for a slave host controller connecting to the master or for a Remoting connection for server to server EJB calls.
yes/no? yes
To represent the user add the following to the server-identities definition <secret value="d2lsZGZseTA1Mjc=" />
[root@server-1 ~]# 
[root@server-1 ~]# curl http://172.16.1.200:8080
<!--
  ~ JBoss, Home of Professional Open Source.
  ~ Copyright (c) 2014, Red Hat, Inc., and individual contributors
  ~ as indicated by the @author tags. See the copyright.txt file in the
  ~ distribution for a full listing of individual contributors.
  ~
  ~ This is free software; you can redistribute it and/or modify it
  ~ under the terms of the GNU Lesser General Public License as
  ~ published by the Free Software Foundation; either version 2.1 of
  ~ the License, or (at your option) any later version.
  ~
  ~ This software is distributed in the hope that it will be useful,
  ~ but WITHOUT ANY WARRANTY; without even the implied warranty of
  ~ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  ~ Lesser General Public License for more details.
  ~
  ~ You should have received a copy of the GNU Lesser General Public
  ~ License along with this software; if not, write to the Free
  ~ Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
  ~ 02110-1301 USA, or see the FSF site: http://www.fsf.org.
  -->
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">

<html>
<head>
    <title>Welcome to WildFly</title>
    <link rel="shortcut icon" href="favicon.ico" type="image/x-icon">
    <link rel="StyleSheet" href="wildfly.css" type="text/css">
</head>

<body>
<div class="wrapper">
    <div class="content">
        <div class="logo">
                <img src="wildfly_logo.png" alt="WildFly" border="0" />
        </div>
        <h1>Welcome to WildFly</h1>

        <h3>Your WildFly instance is running.</h3>

        <p><a href="http://docs.wildfly.org">Documentation</a> | <a href="http://github.com/wildfly/quickstart">Quickstarts</a> | <a href="/console">Administration
            Console</a> </p>

        <p><a href="http://wildfly.org">WildFly Project</a> |
            <a href="https://community.jboss.org/en/wildfly">User Forum</a> |
            <a href="https://issues.jboss.org/browse/WFLY">Report an issue</a></p>
        <p class="logos"><a href="http://jboss.org"><img src="jbosscommunity_logo_hori_white.png" alt="JBoss and JBoss Community" width=
                "195" height="37" border="0"></a></p>

        <p class="note">To replace this page simply deploy your own war with / as its context path.<br />
            To disable it, remove the "welcome-content" handler for location / in the undertow subsystem.</p>
    </div>
</div>
</body>
</html>
[root@server-1 ~]#