JBoss EAP 6.4 Standalone Installation on RHEL 6.x
This article will help you to build a JBoss Enterprise Application server. Here I’m installing JBoss Enterprise Application Platform (EAP) 6.4 Standalone on Red Hat/CentOS 6
JBoss EAP Web Server is a fully integrated and certified set of components for hosting of Java web applications. It combines the world’s most deployed web server (Apache HTTP Server), the top servlet engine (Apache™ Tomcat), load balancers (mod_jk and mod_cluster), and the Tomcat Native library, with the best support in middleware.
It is developed in Java and is highly stable, mature and feature rich application server. It is designed to meet the needs of high scale applications and supports advanced features like Clustering, Deployment APIs, Distributed caching, Fail-over setups, Load Balancing and Management Extensions.
About: JBoss EAP (Enterprise Application Platform)
Red Hat JBoss Enterprise Application Platform 6 (JBoss EAP 6) is a middleware platform built on open standards and compliant with the Java Enterprise Edition 6 specification. It integrates JBoss Application Server 7 with high-availability clustering, messaging, distributed caching, and other technologies. In addition, JBoss EAP 6 includes APIs and development frameworks for quickly developing secure and scalable Java EE applications.
Suggestable Read: CentOS/Redhat Enterprise Linux 6 Installation
1. JBoss user creation and providing permissions to run the application
2.“Java JDK “ java-1.7.0-openjdk-devel.x86_64 : OpenJDK Development Environment
& java-1.7.0-openjdk.x86_64 : OpenJDK Runtime Environment
|(JBoss EAP 6. 4 supports java versions 1.6 1.7 & 1.8 ** support only with 6.4.1 update and above)|
3. JAVA_Home & Path settings for JBoss user
4. JBoss EAP 6.4 (Zip file)
|(JBoss Web Server is only available through a full Red Hat subscription. Download JBoss EAP Web Server by logging in to the Red Hat Customer Portal and downloading it from there.)|
Let’s get start the installation process from the JBoss EAP requirements: first will install Java-1.7.0
Creating a user to run the jboss application service,below commands to create a new user and setting the password(Note: if you are not configured local yum server, look into this link to configure local yum server)
Step 1: JBoss user creation and providing permissions to run the application
|[[email protected] ~]# useradd -c “JBoss EAP 6” jboss|
Set the password for jboss user
|[[email protected] ~]# passwd jboss|
Providing the sudo permissions with no password prompt to “jboss” user
|[[email protected] ~]# echo jboss ALL='(‘ALL’)’ NOPASSWD:ALL >> /etc/sudoers|
Verify sudoers permissions to jboss user
|[[email protected] ~]# tail -5 /etc/sudoers|
|## Read drop-in files from /etc/sudoers.d (the # here does not mean a comment)|
jboss ALL=(ALL) NOPASSWD:ALL
jboss ALL=(ALL) NOPASSWD:ALL
Step 2: JAVA installation
|[[email protected] ~]# yum install java-1.7.0-openjdk-devel –y|
Verify the java installed version:
|[[email protected] ~]# java -version|
|java version “1.7.0_111”|
OpenJDK Runtime Environment (rhel-18.104.22.168.el6_8-x86_64 u111-b01)
OpenJDK 64-Bit Server VM (build 24.111-b01, mixed mode)
Switch user to jboss then set java HOME and Path environment settings as below.
|[[email protected] ~]# su – jboss|
3. java HOME and Path environment settings for jboss user
|[[email protected] ~]$ vim .bash_profile|
|[[email protected] ~]$ source .bash_profile|
Verifying JAVA Environment Settings for jboss user..
|[[email protected] ~]$ echo $JAVA_HOME|
|[[email protected] ~]$ echo $PATH|
Step 4 :JBoss EAP installation
Download JBoss EAP 6.4 by logging with your credentials then jboss download it and upload in to your server.
Note: I have copied jboss downloaded file in to server with jboss user credentials.
extracting the jboss zip into the prefarable location
|[[email protected] ~]# unzip jboss-eap-6.4.0.zip -d /usr/share/|
go to the jboss directory to do changes in standalone xml file.
|[[email protected] ~]# cd /usr/share/jboss-eap-6.4/|
edit jboss standalone configuration as below
|[[email protected] ~]# sudo vim standalone/configuration/standalone.xml|
|[[email protected] jboss-eap-6.4]$ sudo cp bin/init.d/jboss-as-standalone.sh /etc/init.d/jboss|
Give the excutable permissions to start the jboss service.
|[[email protected] jboss-eap-6.4]$ sudo chmod -x /etc/init.d/jboss|
Make a directory for jboss configuration settings and set the below parameters to run jboss properly.
|[email protected] jboss-eap-6.4]$ sudo mkdir -p /etc/jboss-as/|
JBoss Home and User settings
|[[email protected] jboss-eap-6.4]$ sudo vim /etc/jboss-as/jboss-as.conf|
|[[email protected] jboss-eap-6.4]$ chown -Rf jboss: /usr/share/jboss-eap-6.4|
Add the jboss service in chkconfig list with below command.
|[[email protected] jboss-eap-6.4]$ sudo chkconfig –add /etc/init.d/jboss|
turn on the jboss service to start with system boots up.
|[[email protected] jboss-eap-6.4]$ sudo chkconfig –level 235 jboss on|
Start the jboss service
|[[email protected] jboss-eap-6.4]$ sudo service jboss start|
Go to the binary directory (/usr/share/jboss-eap-6.4/bin) to create a management user.
|[[email protected] bin]$ pwd|
Now Add the Management user to access the JBoss EAP web console page to deploying applications further
|[[email protected] bin]$ ./add-user.sh|
What type of user do you wish to add?
Enter the details of the new user to add.
Using realm ‘ManagementRealm’ as discovered from the existing property files.
Username : admin
The username ‘admin’ is easy to guess
Are you sure you want to add user ‘admin’ yes/no? yes
The password must be different from the username
Password : (any password in complexity)
Re-enter Password : (retype password in complexity)
Is this correct yes/no? yes
|[[email protected] run]$ ps -ef | grep jboss|
Go to any web browser then check the management console page by typing your jboss server name or IP address with the port number.