Wildfly 10 install in Debian 8 - norxiva/drools-example GitHub Wiki

WildFly 10 install in Debian 8

wget http://download.jboss.org/wildfly/10.1.0.Final/wildfly-10.1.0.Final.tar.gz
tar xvf wildfly-10.1.0.Final.tar.gz
sudo mkdir -p /usr/local/wildfly
sudo mv wildfly-10.1.0.Final /usr/local/wildfly/

cd /usr/local/wildfly
sudo cp docs/contrib/scripts/init.d/wildfly-init-debian.sh /etc/init.d/wildfly
sudo update-rc.d wildfly defaults
sudo ln -s /usr/local/wildfly/wildfly-10.1.0.Final /opt/wildfly

sudo addgroup wildfly
sudo useradd -g wildfly -d /home/wildfly -s /bin/bash -m wildfly
sudo chown wildfly:wildfly -R /opt/wildfly
sudo chown wildfly:wildfly -R /usr/local/wildfly/wildfly-10.1.0.Final

sudo vi /usr/local/wildfly/wildfly-10.1.0.Final/standalone/configuration/standalone.xml

<interfaces>
    <interface name="management">
        <!--
        <inet-address value="${jboss.bind.address.management:127.0.0.1}"/>
        -->
        <any-address/>
    </interface>
    <interface name="public">
        <!--
        <inet-address value="${jboss.bind.address:127.0.0.1}"/>
        -->
        <any-address/>
    </interface>
</interfaces>

sudo service wildfly start

open your browser using url: http://ip_address:8080(wildfly welcome page).

vi ~/.profile to add WILDFLY_HOME/bin to PATH and source .profile

add management user

norxiva@debian210:/usr/local/wildfly/wildfly-10.1.0.Final/bin$ sudo ./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): a

Enter the details of the new user to add.
Using realm 'ManagementRealm' as discovered from the existing property files.
Username : wildadmin
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 : 
WFLYDM0098: The password should be different from the username
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 'wildadmin' for realm 'ManagementRealm'
Is this correct yes/no? yes
Added user 'wildadmin' to file '/usr/local/wildfly/wildfly-10.1.0.Final/standalone/configuration/mgmt-users.properties'
Added user 'wildadmin' to file '/usr/local/wildfly/wildfly-10.1.0.Final/domain/configuration/mgmt-users.properties'
Added user 'wildadmin' with groups  to file '/usr/local/wildfly/wildfly-10.1.0.Final/standalone/configuration/mgmt-groups.properties'
Added user 'wildadmin' with groups  to file '/usr/local/wildfly/wildfly-10.1.0.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="d2lsZGFkbWlu" />

deploy war

norxiva@debian210:/usr/local/wildfly/wildfly-10.1.0.Final/bin$ jboss-cli.sh 
You are disconnected at the moment. Type 'connect' to connect to the server or 'help' for the list of supported commands.
[disconnected /] connect
Authenticating against security realm: ManagementRealm
Username: wildadmin
Password: 
[standalone@localhost:9990 /] deploy /home/norxiva/kie-drools-wb-7.1.0.Final-wildfly10.war
⚠️ **GitHub.com Fallback** ⚠️