Sunday, July 6, 2014

on
In this tutorial, let us see how to install websphere application server (WAS) in linux machine (RHEL) in silent mode. It is very easy to install the base version of WebSphere application server  using silent mode in Redhat.  Just create a Response file that contains necessary settings and run the install script with silent mode.
i.e. install -options responsefile.base.txt -silent -is:javaconsole

 You can find the original response file (responsefile.base.txt) inside WAS folder in wassetup. Take a backup of that file and open the file.

$ vi responseWAS.txt

The minimum lines required for installing websphere are given below.   Copy all the below line in the response file and save it. (Esc + shift : wq)


-OPT silentInstallLicenseAcceptance="true" 
-OPT disableOSPrereqChecking="true" 
-OPT disableNonBlockingPrereqChecking="true" 
-OPT installType="installNew" 
-OPT feature="noFeature" 
-OPT installLocation="/opt/IBM/WebSphere/AppServer1" 
-OPT PROF_enableAdminSecurity="true" 
-OPT PROF_adminUserName=wasadmin
-OPT PROF_adminPassword=wasadmin 
-OPT PROF_profileName=AppSrv01 
-OPT PROF_hostName=yourhostname.com
-OPT PROF_nodeName=node01 
-OPT PROF_defaultPorts="true" 
-OPT traceLevel=INFO

Change the above file according to your requirement for e.g. hostName, nodeName, installLocation, userName and Password etc..
Note : hostName should be matched to your server's host name.  Please check the host name by giving the below command.

$hostname

Run the following commands
Give execute permission for all the files under WAS folder.
$cd wassetup
$ chmod -R 777 WAS
$cd /usr/sbin/
$ ./setenforce 0
$ cd WAS/
$./install -options responsefile.base.txt -silent -is:javaconsole

It takes some time to complete the installation. Once the installation is completed, you can start the server by giving the following command.

$cd /opt/IBM/WebSphere/ApplicationServer
$./startServer.sh server1


1 comments: