How to Install JBOSS EAP 7.0.0 on RHEL6.5/CentOS6.5 – a step by step tutorial of INSTALLER Installation
INTRODUCTION
In
this tutorial, we will demonstrate how to install and start a JBoss
EAP 7.0.0 server on RHEL 6.5/CentOS 6.5. We use Oracle JDK 8 for this
tutorial.
This
Tutorial Consists Of The Following Steps:
-
Step
1: Download installer link
-
Step
2: JDK
installation and verification
-
Step
3 to Step 14: JBoss
EAP
7 installation
procedure using INSTALLER
Installation
-
Step
15: Start Jboss EAP 7 server
Step
1: Download installer link
Step
2: JDK
installation and verification
Step
3 to Step 14: JBoss
EAP
7 installation
procedure using INSTALLER
Installation
Step
15: Start Jboss EAP 7 server
Red
Hat JBoss EAP 7.0 is based on
Wildfly 10,
and provides pre-configured options for features such as
high-availability clustering, messaging, and distributed caching. And
it
is an application server that works
as a middleware platform, is built on open standards, and is
compliant with the Java EE 7 specification.
Step
1:
Download
the installer from:
https://developers.redhat.com/products/eap/download/
Select
the
EAP
7.0.0
(Developers version) from the list. Click on Installer
option
within Download
column.
For
Linux/Windows/Mac,
the installer would be jboss-eap-7.0.0-installer.jar
(176MB)
Step
2:
Make
sure your system has updated Java (7/8)
installed. The
first step before installing JBoss EAP 7, is to install a JDK. Any
JDK can be used, such as Sun JDK, OpenJDK, IBM JDK, or JRocket etc.
We chose Oracle JDK 8 for this tutorial.
Note:
For our installation, here we defining JAVA_HOME, because most
production environments with multiple versions of Java, it is
recommended to set the JAVA_HOME in the standalone.conf or
domain.conf files.
Download
jdk1.8 and
above
version from oracle site.
$ mkdir -p /opt/redhat/
$ cp ~/Download/jdk-8u144-linux-x64.tar.gz /opt/redhat/
$ cd /opt/redhat/
$ tar -xzvf jdk-8u144-linux-x64.tar.gz
$ mkdir -p /opt/redhat/
$ cp ~/Download/jdk-8u144-linux-x64.tar.gz /opt/redhat/
$ cd /opt/redhat/
$ tar -xzvf jdk-8u144-linux-x64.tar.gz
open
file in editor and add below variables bottom of the file
$
vim ~/.bash_profile
JAVA_HOME="/opt/redhat/jdk1.8.0_144"
export
JAVA_HOME
PATH=$JAVA_HOME/bin:$PATH
export
PATH
$
source ~/.bash_profile
Confirming
The Install:
Issue
the following command to confirm that the proper version of the JDK
is on your classpath:
$
java -version
NOTE:
For our installation, here we defining JAVA_HOME, because most
production environments with multiple versions of Java, it is
recommended to set the JAVA_HOME in the standalone.conf or
domain.conf files.
Step
3: Now
run the below command and an installer interface will comes up. Follow the below step by step instructions and
install your JBoss EAP 7.0.0.
$ cp ~/Download/jboss-eap-7.0.0-installer.jar /opt/redhat/
$ cd /opt/redhat/
Select
your preferable language and click on OK.$ cd /opt/redhat/
$
java
-jar jboss-eap-7.0.0-installer.jar
Step
4:
Accept the terms of the license agreement and click on Next.
Step
5:
By
default, the installer will create a default EAP installation folder
on
home directory of the user.
But we
will
choose
a different location to install it. Select
the location /opt/redhat/EAP-7.0.0 and click Next.
Step
6:
See
the total space required for Red Hat JBoss EAP installation and
available disk space. If space
is less on selected directory,
you can go to Previous step
and change the installation directory.
Otherwise click on Next option.
Step
7: Within the application server, there would be an administration
server. It will control and administer the entire JBoss domain in
run-time. To control the admin server and related domain, you need an
admin user. By default, the admin username is admin,
but
you can change it and use another name. Here
I kept the admin username same.
Step
8: Now
the Installation Overview will show the installation path
/opt/redhat/EAP-7.0.0 and
Chosen installation packs and Administrative User. If you wish to
change anything go to Previous, else Click Next option
to
start installation.
Step
9:
In
this section, leave them as they are. But there are multiple options
to configure. You can enable SSL security but it would need Keystore.
Likewise, for LDAP authentication, you can link the JBoss server
direct to your authentication LDAP server. But right now we will not
be needing them here, you can change later that section editing
manually to standalone.xml or domain.xml.
Step
10: Now installation is finished.
Click Next.
Step
11:
You can chose to create shortcut
in start menu but we will not use this option it. Click Next.
Step
12:
In this section you can Generate
installation script for silent installation on next server. So click
to Generate installation script and properties file. Next two
files will be created on JBoss7 EAP home directory silentscript.xml
and silentscript.xml.variables and these files will be needed
to install silent setup.
Step
13:
Give a file name silentscript
and click to OK.
Step
14:
Installation
has been completed successfully and Uninstaller program is also been
created automatically. Click on Done.
Step 15: Start The JBoss EAP7 Server:
We are now ready to start our new JBoss AS 7 server. With JBoss EAP7,
a new standalone and domain model has been introduced. In this
tutorial, we focus on starting up a standalone server. The domain
server will be part of a future tutorial.
Startup
A JBoss
EAP7,
Standalone Instance:
A
standalone instance of JBoss 7 can be starting by executing:
$
cd
/opt/redhat/EAP-7.0.0/bin$ ./standalone.sh &
Nice expansions thanks
ReplyDeleteGood one
ReplyDeleteIt's great
ReplyDelete