How to install wildfly10.0.0 on Ubuntu 16.04
To install wildfly10.0.0 on Ubuntu 16.04
Wildfly is an open source application, developed by jboss and now maintained by RedHat. The installation of wildfly 10.0.0 on Ubuntu 16.04 is discussed in this article.
Installation of Wildfly 10.0.0
Download the wildfly latest version from official site using wget command.
root@linuxhelp:/opt# wget http://download.jboss.org/wildfly/10.0.0.Final/wildfly-10.0.0.Final.tar.gz
--2016-06-01 01:21:38-- http://download.jboss.org/wildfly/10.0.0.Final/wildfly-10.0.0.Final.tar.gz
Resolving download.jboss.org (download.jboss.org)... 23.211.203.246
Connecting to download.jboss.org (download.jboss.org)|23.211.203.246|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 137189474 (131M) [application/x-gzip]
Saving to: ‘ wildfly-10.0.0.Final.tar.gz’
wildfly-10.0.0.Fina 100%[===================> ] 130.83M 579KB/s in 4m 19s
2016-06-01 01:25:57 (518 KB/s) - ‘ wildfly-10.0.0.Final.tar.gz’ saved [137189474/137189474]
Once the download is completed, extract the tar file by using the following command.
root@linuxhelp:/opt# ls
wildfly-10.0.0.Final.tar.gz
root@linuxhelp:/opt# tar -xvzf wildfly-10.0.0.Final.tar.gz
wildfly-10.0.0.Final/
wildfly-10.0.0.Final/.installation/
wildfly-10.0.0.Final/appclient/
wildfly-10.0.0.Final/appclient/configuration/
.
.
.
.
.
wildfly-10.0.0.Final/welcome-content/index_noconsole.html
wildfly-10.0.0.Final/welcome-content/jbosscommunity_logo_hori_white.png
wildfly-10.0.0.Final/welcome-content/noconsole.html
wildfly-10.0.0.Final/welcome-content/noredirect.html
wildfly-10.0.0.Final/welcome-content/wildfly.css
wildfly-10.0.0.Final/welcome-content/wildfly_logo.png
Rename that extracted directory and then change permission.
root@linuxhelp:/opt# mv wildfly-10.0.0.Final wildfly
root@linuxhelp:/opt# chmod -R 755 wildfly
Next go to “ wildfly/bin/” directory and list the files.
root@linuxhelp:/opt/wildfly# cd bin/
root@linuxhelp:/opt/wildfly/bin# ls
add-user.bat domain.ps1 standalone.conf
add-user.properties domain.sh standalone.conf.bat
add-user.ps1 jboss-cli.bat standalone.conf.ps1
add-user.sh jboss-cli-logging.properties standalone.ps1
appclient.bat jboss-cli.ps1 standalone.sh
appclient.conf jboss-cli.sh vault.bat
appclient.conf.bat jboss-cli.xml vault.ps1
appclient.conf.ps1 jconsole.bat vault.sh
appclient.ps1 jconsole.ps1 wsconsume.bat
appclient.sh jconsole.sh wsconsume.ps1
client jdr.bat wsconsume.sh
common.ps1 jdr.ps1 wsprovide.bat
domain.bat jdr.sh wsprovide.ps1
domain.conf launcher.jar wsprovide.sh
domain.conf.bat product.conf
domain.conf.ps1 standalone.bat
root@linuxhelp:/opt/wildfly/bin#
Next execute the “ standalone.sh” script.
root@linuxhelp:/opt/wildfly/bin# ./standalone.sh
=========================================================================
JBoss Bootstrap Environment
JBOSS_HOME: /opt/wildfly
JAVA: java
JAVA_OPTS: -server -Xms64m -Xmx512m -XX:MetaspaceSize=96M -XX:MaxMetaspaceSize=256m -Djava.net.preferIPv4Stack=true -Djboss.modules.system.pkgs=org.jboss.byteman -Djava.awt.headless=true
=========================================================================
01:32:22,927 INFO [org.jboss.modules] (main) JBoss Modules version 1.5.1.Final
01:32:23,854 INFO [org.jboss.msc] (main) JBoss MSC version 1.2.6.Final
01:32:24,008 INFO [org.jboss.as] (MSC service thread 1-2) WFLYSRV0049: WildFly Full 10.0.0.Final (WildFly Core 2.0.10.Final) starting
Now the wildfly is running on port number 9990. We can access wildfly from browser by using following url.
http://127.0.0.1:9990

To Add user for Wildfly
Just open the terminal then kill the current process. Run “ add-user.sh” script file.
root@linuxhelp:/opt/wildfly/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): a Enter the details of the new user to add. Using realm ' ManagementRealm' as discovered from the existing property files. Username : linuxhelpadmin 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 : WFLYDM0100: Password should have at least 1 alphanumeric character. 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 ' linuxhelpadmin' for realm ' ManagementRealm' Is this correct yes/no? yes Added user ' linuxhelpadmin ' to file ' /opt/wildfly/standalone/configuration/mgmt-users.properties' Added user ' linuxhelpadmin ' to file ' /opt/wildfly/domain/configuration/mgmt-users.properties' Added user ' linuxhelpadmin ' with groups to file ' /opt/wildfly/standalone/configuration/mgmt-groups.properties' Added user ' linuxhelpadmin ' with groups to file ' /opt/wildfly/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
Now again run the “ standalone.sh” script file.
root@linuxhelp:/opt/wildfly/bin# ./standalone.sh
=========================================================================
JBoss Bootstrap Environment
JBOSS_HOME: /opt/wildfly
JAVA: java
JAVA_OPTS: -server -Xms64m -Xmx512m -XX:MetaspaceSize=96M -XX:MaxMetaspaceSize=256m -Djava.net.preferIPv4Stack=true -Djboss.modules.system.pkgs=org.jboss.byteman -Djava.awt.headless=true
=========================================================================
01:32:22,927 INFO [org.jboss.modules] (main) JBoss Modules version 1.5.1.Final
01:32:23,854 INFO [org.jboss.msc] (main) JBoss MSC version 1.2.6.Final
01:32:24,008 INFO [org.jboss.as] (MSC service thread 1-2) WFLYSRV0049: WildFly Full 10.0.0.Final (WildFly Core 2.0.10.Final) starting
Open the browser and type the following http://127.0.0.1:9990/console.

Enter the username and password then click ok.


Comments ( 0 )
No comments available