{"id":6999,"date":"2018-10-11T17:23:18","date_gmt":"2018-10-11T14:23:18","guid":{"rendered":"https:\/\/www.howtoforge.com\/tutorial\/ubuntu-wildfly-jboss-installation\/"},"modified":"2018-10-11T17:23:18","modified_gmt":"2018-10-11T14:23:18","slug":"how-to-install-wildfly-jboss-java-application-server-on-ubuntu-18-04","status":"publish","type":"post","link":"https:\/\/afaghhosting.net\/blog\/how-to-install-wildfly-jboss-java-application-server-on-ubuntu-18-04\/","title":{"rendered":"How to install WildFly (JBoss) Java Application Server on Ubuntu 18.04"},"content":{"rendered":"<p>WildFly, formerly known as JBoss, is a free and open source application server written in Java\u00a0which implements the Java Enterprise Edition (Java EE) specification. It runs on multiple platforms incl. Windows and Linux. WildFly provides support for Web Sockets that allows your applications the ability to use optimized custom protocols and full-duplex communication with your backend infrastructure.<\/p>\n<p>In this tutorial, I will explain how to install WildFly application server on Ubuntu 18.04 LTS.<\/p>\n<h2 id=\"requirements\">Requirements<\/h2>\n<ul>\n<li>A server running Ubuntu 18.04 server.<\/li>\n<li>A non-root user with sudo privileges.<\/li>\n<li>A static IP address 192.168.0.235 configure on your server.<\/li>\n<\/ul>\n<h2 id=\"install-java\">Install Java<\/h2>\n<p>WildFly is written in Java, so you will need to install Java to your system. You can install Java by running the following command:<\/p>\n<p class=\"command\">sudo apt-get install default-jdk -y<\/p>\n<p>Once the Java is installed, you can check the version of Java using the following command:<\/p>\n<p class=\"command\">java -version<\/p>\n<p>Output:<\/p>\n<pre>openjdk version \"10.0.2\" 2018-07-17&#13;\nOpenJDK Runtime Environment (build 10.0.2+13-Ubuntu-1ubuntu0.18.04.2)&#13;\nOpenJDK 64-Bit Server VM (build 10.0.2+13-Ubuntu-1ubuntu0.18.04.2, mixed mode)&#13;\n<\/pre>\n<h2 id=\"install-wildfly\">Install WildFly<\/h2>\n<p>First, you will need to download the latest version of WildFly from their official website. You can download it with the following command:<\/p>\n<p class=\"command\">wget http:\/\/download.jboss.org\/wildfly\/14.0.1.Final\/wildfly-14.0.1.Final.tar.gz<\/p>\n<p>Once the download is completed, extract the downloaded file with the following command:<\/p>\n<p class=\"command\">cd \/opt<br \/>tar -xvzf wildfly-14.0.1.Final.tar.gz<br \/>sudo mv wildfly-14.0.1.Final wildfly<\/p>\n<p>By default, WildFly server is binded to 127.0.0.1, you can access it only using 127.0.0.1. So you will need to change binded address to your server IP, if you want to connect WildFly from anywhere on LAN. You can do this by editing standalone.xml file:<\/p>\n<p class=\"command\">sudo nano \/opt\/wildfly\/standalone\/configuration\/standalone.xml<\/p>\n<p>Change the following lines:<\/p>\n<pre>&lt;subsystem xmlns=\"urn:jboss:domain:webservices:2.0\"&gt;&#13;\n&lt;wsdl-host&gt;${jboss.bind.address:192.168.0.235}&lt;\/wsdl-host&gt;&#13;\n&lt;endpoint-config name=\"Standard-Endpoint-Config\"\/&gt;&#13;\n&#13;\n&lt;interface name=\"management\"&gt;&#13;\n&lt;inet-address value=\"${jboss.bind.address.management:192.168.0.235}\"\/&gt;&#13;\n&lt;\/interface&gt;&#13;\n&#13;\n&lt;interface name=\"public\"&gt;&#13;\n&lt;inet-address value=\u201d${jboss.bind.address:192.168.0.235}\u201d\/&gt;&#13;\n&lt;\/interface&gt;&#13;\n<\/pre>\n<p>Save and clsoe the file.<\/p>\n<p>Next, you will need to add a user to access the management console. You can add the user by running the following script:<\/p>\n<p class=\"command\">sudo \/opt\/wildfly\/bin\/add-user.sh<\/p>\n<p>Answer all the questions as shown below:<\/p>\n<pre>What type of user do you wish to add? &#13; a) Management User (mgmt-users.properties) &#13; b) Application User (application-users.properties)&#13;\n(a): &#13;\n&#13;\nEnter the details of the new user to add.&#13;\nUsing realm 'ManagementRealm' as discovered from the existing property files.&#13;\nUsername : wildflyadmin&#13;\nPassword recommendations are listed below. To modify these restrictions edit the add-user.properties configuration file.&#13; - The password should be different from the username&#13; - The password should not be one of the following restricted values {root, admin, administrator}&#13; - The password should contain at least 8 characters, 1 alphabetic character(s), 1 digit(s), 1 non-alphanumeric symbol(s)&#13;\nPassword : &#13;\nRe-enter Password : &#13;\nWhat groups do you want this user to belong to? (Please enter a comma separated list, or leave blank for none)[ ]: wildfly&#13;\nAbout to add user 'wildflyadmin' for realm 'ManagementRealm'&#13;\nIs this correct yes\/no? yes&#13;\nAdded user 'wildflyadmin' to file '\/opt\/wildfly\/standalone\/configuration\/mgmt-users.properties'&#13;\nAdded user 'wildflyadmin' to file '\/opt\/wildfly\/domain\/configuration\/mgmt-users.properties'&#13;\nAdded user 'wildflyadmin' with groups wildfly to file '\/opt\/wildfly\/standalone\/configuration\/mgmt-groups.properties'&#13;\nAdded user 'wildflyadmin' with groups wildfly to file '\/opt\/wildfly\/domain\/configuration\/mgmt-groups.properties'&#13;\nIs this new user going to be used for one AS process to connect to another AS process? &#13;\ne.g. for a slave host controller connecting to the master or for a Remoting connection for server to server EJB calls.&#13;\nyes\/no? yes&#13;\nTo represent the user add the following to the server-identities definition <secret value=\"cEBzc3cwcmQ=\"\/>&#13;\n<\/pre>\n<h2 id=\"access-wildfly-console\">Access WildFly Console<\/h2>\n<p>Before accessing WildFly console, you will need to start the wildfly instance. You can start it with the following command:<\/p>\n<p class=\"command\">sudo sh \/opt\/wildfly\/bin\/standalone.sh<\/p>\n<p>The above command will start the wildfly instance.<\/p>\n<p>Now, open your web browser and type the URL http:\/\/192.168.0.235:8080. You will be redirected to the WildFly default page:<\/p>\n<p><a class=\"fancybox\" id=\"img-wildfly\" href=\"https:\/\/www.howtoforge.com\/images\/how_to_install_wildfly_on_ubuntu_1804\/big\/wildfly.png\" target=\"_blank\" rel=\"noopener\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/afaghhosting.net\/blog\/wp-content\/uploads\/2018\/10\/how-to-install-wildfly-jboss-java-application-server-on-ubuntu-18-04.png\" alt=\"WildFly default page\" width=\"550\" height=\"325\" title=\"\"><\/a><\/p>\n<p>To access the management console, open your web browser and type the URL http:\/\/192.168.0.235:9990. You will be redirected to the following page:<\/p>\n<p><a class=\"fancybox\" id=\"img-page2\" href=\"https:\/\/www.howtoforge.com\/images\/how_to_install_wildfly_on_ubuntu_1804\/big\/page2.png\" target=\"_blank\" rel=\"noopener\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/afaghhosting.net\/blog\/wp-content\/uploads\/2018\/10\/how-to-install-wildfly-jboss-java-application-server-on-ubuntu-18-04-1.png\" alt=\"Login\" width=\"550\" height=\"324\" title=\"\"><\/a><\/p>\n<p>Now, provide your WildFly login credentials, then click on the <strong>OK<\/strong> button. You should see the WildFly management console dashboard in the following page:<\/p>\n<p><a class=\"fancybox\" id=\"img-page3\" href=\"https:\/\/www.howtoforge.com\/images\/how_to_install_wildfly_on_ubuntu_1804\/big\/page3.png\" target=\"_blank\" rel=\"noopener\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/afaghhosting.net\/blog\/wp-content\/uploads\/2018\/10\/how-to-install-wildfly-jboss-java-application-server-on-ubuntu-18-04-2.png\" alt=\"WildFly Application Server Dashboard\" width=\"550\" height=\"324\" title=\"\"><\/a><\/p>\n<h2 id=\"links\">Links<\/h2>\n<div class=\"authorbox\" readability=\"30\">\n<img decoding=\"async\" src=\"https:\/\/afaghhosting.net\/blog\/wp-content\/uploads\/2018\/10\/how-to-install-wildfly-jboss-java-application-server-on-ubuntu-18-04.jpg\" alt=\"Hitesh Jethva\" title=\"\"> <\/p>\n<p><strong>About Hitesh Jethva<\/strong><\/p>\n<p>Over 8 years of experience as a Linux system administrator. My skills include a depth knowledge of Redhat\/Centos, Ubuntu Nginx and Apache, Mysql, Subversion, Linux, Ubuntu, web hosting, web server, Squid proxy, NFS, FTP, DNS, Samba, LDAP, OpenVPN, Haproxy, Amazon web services, WHMCS, OpenStack Cloud, Postfix Mail Server, Security etc.<\/p>\n<\/div>\n<div>\n<p><b>Share this page:<\/b><\/p>\n<p>\n<a href=\"https:\/\/www.facebook.com\/sharer.php?u=https%3A%2F%2Fwww.howtoforge.com%2Ftutorial%2Fubuntu-wildfly-jboss-installation%2F\" target=\"_blank\" rel=\"nofollow noopener noreferrer\"><img decoding=\"async\" src=\"https:\/\/afaghhosting.net\/blog\/wp-content\/uploads\/2018\/10\/how-to-install-wildfly-jboss-java-application-server-on-ubuntu-18-04-3.png\" height=\"20\" alt=\"\" title=\"\"><\/a><br \/>\n<a href=\"https:\/\/twitter.com\/intent\/tweet?url=https%3A%2F%2Fwww.howtoforge.com%2Ftutorial%2Fubuntu-wildfly-jboss-installation%2F&amp;text=How+to+install+WildFly+%28JBoss%29+Java+Application+Server+on+Ubuntu+18.04&amp;via=howtoforgecom&amp;related=howtoforgecom\" target=\"_blank\" rel=\"nofollow noopener noreferrer\"><img decoding=\"async\" src=\"https:\/\/afaghhosting.net\/blog\/wp-content\/uploads\/2018\/10\/how-to-install-wildfly-jboss-java-application-server-on-ubuntu-18-04-4.png\" height=\"20\" alt=\"\" title=\"\"><\/a><br \/>\n<a href=\"https:\/\/twitter.com\/howtoforgecom\/\" target=\"_blank\" rel=\"nofollow noopener noreferrer\"><img decoding=\"async\" src=\"https:\/\/afaghhosting.net\/blog\/wp-content\/uploads\/2018\/10\/how-to-install-wildfly-jboss-java-application-server-on-ubuntu-18-04-5.png\" height=\"20\" alt=\"\" title=\"\"><\/a><br \/>\n<a href=\"https:\/\/plus.google.com\/share?url=https%3A%2F%2Fwww.howtoforge.com%2Ftutorial%2Fubuntu-wildfly-jboss-installation%2F\" target=\"_blank\" rel=\"nofollow noopener noreferrer\"><img decoding=\"async\" src=\"https:\/\/afaghhosting.net\/blog\/wp-content\/uploads\/2018\/10\/how-to-install-wildfly-jboss-java-application-server-on-ubuntu-18-04-6.png\" height=\"20\" alt=\"\" title=\"\"><\/a>\n<\/p>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>WildFly, formerly known as JBoss, is a free and open source application server written in Java\u00a0which implements the Java Enterprise Edition (Java EE) specification. It runs on multiple platforms incl. Windows and Linux. WildFly provides support for Web Sockets that allows your applications the ability to use optimized custom protocols and full-duplex communication with your &hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[36],"tags":[],"class_list":["post-6999","post","type-post","status-publish","format-standard","hentry","category-36"],"_links":{"self":[{"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/posts\/6999","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/comments?post=6999"}],"version-history":[{"count":0,"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/posts\/6999\/revisions"}],"wp:attachment":[{"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/media?parent=6999"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/categories?post=6999"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/tags?post=6999"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}