WebSphere在Linux下的安装过程

Guideline:

This document will install websphere+http server+plugin.

And work for develop enviroment only ,because we will ignore OS check when installation




Media name

Descritpion

1

WAS.V6.1.Linux.X86.tar.gz

IBM WebSphere 6.1

2

ihs.6100.linux.ia32.tar

IBM HTTP Server 6.1

3

7.0.0 .5-WS-UPDI-LinuxIA32.tar.gz

UpdateInstaller 7.0

4

WAS.V6.1.Supplements.Linux.X86.tar.gz

HTTP Server+Plugin


Path

Descritipn

1

6.1.0 -WS-WASSDK-LinuxX32-FP0000027.pak

IBM WebSphere 6.1 patch

2

6.1.0 -WS-WAS-LinuxX32-FP0000027.pak

IBM WebSphere 6.1 patch

3

6.1.0 -WS-IHS-LinuxX32-FP0000027.pak

IBM HTTP Server 6.1 path

4

6.1.0 -WS-PLG-LinuxX32-FP0000027.pak

Plugin path

5

6.1.0 -WS-AppClient-LinuxX32-FP0000027.pak




Install WAS


  1. 1.         Prepare:

mkdir -p /cpic/jtsx/IBM/WebSphere/AppServer

vi /cpic/jtsx/WAS/responsefile.nd.txt

-OPT silentInstallLicenseAcceptance="true"

-OPT allowNonRootSilentInstall="true"

-OPT disableOSPrereqChecking="true"

-OPT disableNonBlockingPrereqChecking="true"

#-OPT installType="installNew"

-OPT createProfile="false"


  1. Excute below comman when on RHL5.0 OS ,  otherwise you will get error like

Error loading: /Software/IBM/WAS/6.1/Linux/x86-32bit/Release/WAS/JDK/jre.pak/repository/package.java.jre/java/jre/bin/libj9thr23.so: cannot restore segment prot after reloc: Permission denied


export PATH=/cpic/jtsx/JDK/jre.pak/repository/package.java.jre/java/jre/bin:$PATH


cd /cpic/jtsx/JDK/jre.pak/repository/package.java.jre/java/jre/bin

chcon -t texrel_shlib_t *.so

chcon -t texrel_shlib_t xawt/*.so

chcon -t texrel_shlib_t j9vm/*.so



  1. Install WAS

cd <media_location>

java �Cjar setup.jar �Coptions reponsefile.nd.txt -silent


  1. Check log:

/cpic/jtsx/IBM/WebSphere/AppServer/logs/install/ log.txt

Install IHS



  1. Prepare
    mkdir -p /cpic/jtsx/IBM/HTTPServer


vi /cpic/jtsx/IHS_ 6.1.0 .0/IHS/responsefile.txt


-OPT silentInstallLicenseAcceptance="true"

-OPT allowNonRootSilentInstall=true

-OPT disableOSPrereqChecking="true"

-OPT installLocation="/cpic/jtsx/IBM/HTTPServer"

-OPT createAdminUserGroup=false



  1. Excute below comman when on RHL5.0 OS ,  otherwise you will get error like

Error loading: /Software/IBM/WAS/6.1/Linux/x86-32bit/Release/WAS/JDK/jre.pak/repository/package.java.jre/java/jre/bin/libj9thr23.so: cannot restore segment prot after reloc: Permission denied


export PATH=/cpic/jtsx/IHS_ 6.1.0 .0/JDK/jre.pak/repository/package.java.jre/java/jre/bin:$PATH


cd /cpic/jtsx/IHS_ 6.1.0 .0/JDK/jre.pak/repository/package.java.jre/java/jre/bin

chcon -t texrel_shlib_t *.so

chcon -t texrel_shlib_t xawt/*.so

chcon -t texrel_shlib_t j9vm/*.so


  1. Install http server

cd <media_location>

java -jar setup.jar -options responsefile.txt �Csilent


  1. check log

/cpic/jtsx/IBM/HTTPServer/logs/install/log.txt


Install WAS UpdateInstaller

  1. Prepare

export PATH=/cpic/jtsx/was/JDK/jre.pak/repository/package.java.jre/java/jre/bin:$PATH

mkdir -p /cpic/jtsx/IBM/WebSphere/UpdateInstaller

vi /cpic/jtsx/was/UpdateInstaller/ responsefile.updiinstaller.txt

-OPT silentInstallLicenseAcceptance="true"

-OPT allowNonRootSilentInstall="true"

-OPT disableOSPrereqChecking="true"

-OPT disableEarlyPrereqChecking="true"

-OPT installLocation="/cpic/jtsx/IBM/WebSphere/UpdateInstaller"


  1. Install UpdateInstaller

cd <media_location>

java -jar setup.jar -options responsefile.updiinstaller.txt �Csilent

  1. check log

/cpic/jtsx/IBM/WebSphere/UpdateInstaller/logs/install/log.txt

Install was patch

  1. Prepare was sdk path

vi /cpic/jtsx/IBM/WebSphere/UpdateInstaller/responsefiles/install.txt

-W maintenance.package="/cpic/jtsx/ 6.1.0 -WS-WASSDK-LinuxX32-FP0000027.pak"

-W product.location="/cpic/jtsx/IBM/WebSphere/AppServer"

  1. install was sdk path

cd /cpic/jtsx/IBM/WebSphere/UpdateInstaller

./update.sh -options responsefiles/install.txt �Csilent

  1. Check log

/cpic/jtsx/IBM/WebSphere/AppServer/logs/update/ 6.1.0 -WS-WASSDK-LinuxX32-FP0000027.install/updatelog.txt

  1. Prepare was path

vi /cpic/jtsx/IBM/WebSphere/UpdateInstaller/responsefiles/install.txt

-W maintenance.package="/cpic/jtsx/ 6.1.0 -WS-WAS-LinuxX32-FP0000027.pak"

  1. install was path

cd /cpic/jtsx/IBM/WebSphere/UpdateInstaller

./update.sh -options responsefiles/install.txt �Csilent

  1. Check log

/cpic/jtsx/IBM/WebSphere/AppServer/logs/update/ 6.1.0 -WS-WAS-LinuxX32-FP0000027.install/ updatelog.txt

Install IHS patch

  1. Prepare ihs sdk path

vi /cpic/jtsx/IBM/WebSphere/UpdateInstaller/responsefiles/install.txt

-W maintenance.package="/cpic/jtsx/ 6.1.0 -WS-IHS-LinuxX32-FP0000027.pak"

-W product.location="/cpic/jtsx/IBM/HTTPServer "

  1. install was sdk path

cd /cpic/jtsx/IBM/WebSphere/UpdateInstaller

./update.sh -options responsefiles/install.txt �Csilent

  1. Check log

/cpic/jtsx/IBM/HTTPServer/logs/update/ 6.1.0 -WS-IHS-LinuxX32-FP0000027.install/ updatelog.txt


Install Plugin


  1. Excute below comman when on RHL5.0 OS ,  otherwise you will get error like

Error loading: /Software/IBM/WAS/6.1/Linux/x86-32bit/Release/WAS/JDK/jre.pak/repository/package.java.jre/java/jre/bin/libj9thr23.so: cannot restore segment prot after reloc: Permission denied


export PATH=/cpic/jtsx/was/JDK/jre.pak/repository/package.java.jre/java/jre/bin:$PATH


cd /cpic/jtsx/was/JDK/jre.pak/repository/package.java.jre/java/jre/bin

chcon -t texrel_shlib_t *.so

chcon -t texrel_shlib_t xawt/*.so

chcon -t texrel_shlib_t j9vm/*.so

  1. prepare

vi /cpic/jtsx/was/plugin/responsefile.txt

-OPT allowNonRootSilentInstall="true"

-OPT silentInstallLicenseAcceptance="true"

-OPT installLocation="/cpic/jtsx/IBM/HTTPServer/Plugins"

-OPT wasExistingLocation="/cpic/jtsx/IBM/WebSphere/AppServer"

-OPT webServerConfigFile1="/cpic/jtsx/IBM/HTTPServer/conf/httpd.conf"

mkdir �Cp /cpic/jtsx/IBM/HTTPServer/Plugins

  1. install plugin

cd <media_location>

java -jar setup.jar -options responsefile.txt �Csilent

  1. check log

/cpic/jtsx/IBM/HTTPServer/Plugins/logs/install/log.txt

Install Plugin patch


  1. Prepare plugin path

vi /cpic/jtsx/IBM/WebSphere/UpdateInstaller/responsefiles/install.txt

-W maintenance.package="/cpic/jtsx/ 6.1.0 -WS-IHS-LinuxX32-FP0000027.pak"

-W product.location="/cpic/jtsx/IBM/HTTPServer/Plugins"

  1. install was sdk path

cd /cpic/jtsx/IBM/WebSphere/UpdateInstaller

./update.sh -options responsefiles/install.txt �Csilent

  1. Check log

/cpic/jtsx/IBM/HTTPServer/Plugins/logs/update/ 6.1.0 -WS-PLG-LinuxX32-FP0000027.install/updatelog.txt


Create Deploy Management Node

  1. Create Node

cd /cpic/jtsx/IBM/WebSphere/AppServer/bin


./manageprofiles.sh -create -profileName DeployNode -profilePath /cpic/jtsx/IBM/WebSphere/AppServer/profiles/DeployNode -templatePath /cpic/jtsx/IBM/WebSphere/AppServer/profileTemplates/dmgr -nodeName DeployNode -cellName DeployNodecell -hostName JTsxwebtest1



startManager.sh �CprofileName DeployNode

  1. login Deploy Management Console

http://10.192.18.119:9060/ibm/console

userid:wasadmin

Create Node

  1. Create Node


cd /cpic/jtsx/IBM/WebSphere/AppServer/bin


on server 10.192.18.120

./manageprofiles.sh -create -profileName AppSrv01 -profilePath /cpic/jtsx/IBM/WebSphere/AppServer/profiles/AppSrv01 -templatePath /cpic/jtsx/IBM/WebSphere/AppServer/profileTemplates/default -nodeName AppSrv01Node -cellName AppSrv01NodeCell -hostName JTsxwebtest2


./addNode.sh 10.192.18.119 8879

Raise error:

[8/26/10 14:56:41:987 GMT+08:00] 0000000a AdminTool     A   ADMU0124I: The system clock of the new node (Aug 26, 2010 2:56:41 PM) is

not synchronized with that of the deployment manager (Aug 26, 2010 2:39:00 PM).

[8/26/10 14:56:42:024 GMT+08:00] 0000000a AdminTool     A   ADMU0125E: Change the clock of the new node to be within 5 minutes of th

e clock of the deployment manager.

[8/26/10 14:56:42:037 GMT+08:00] 0000000a AdminTool     A   ADMU0027E: An error occurred during federation <null>; rolling back to o

riginal configuration.


date -s "2010-08-26 15:05:00"


ADMU0027E: An error occurred during federation ADMU0036E: The Deployment

          Manager cannot lookup by name host JTsxwebtest2 at address

          0:0:0:0:0:0:0:1; rolling back to original configuration.


vi /etc/hosts

10.192.18.119 JTsxwebtest1

10.192.18.120 JTsxwebtest2

10.192.18.129 JTsxwebtest3



on server 10.192.18.129

cd /cpic/jtsx/IBM/WebSphere/AppServer/bin


./manageprofiles.sh -create -profileName AppSrv01 -profilePath /cpic/jtsx/IBM/WebSphere/AppServer/profiles/AppSrv01 -templatePath /cpic/jtsx/IBM/WebSphere/AppServer/profileTemplates/default -nodeName AppSrv02Node -cellName AppSrv02NodeCell -hostName JTsxwebtest3


./addNode.sh 10.192.18.119 8879


Raise error:

[8/26/10 14:56:41:987 GMT+08:00] 0000000a AdminTool     A   ADMU0124I: The system clock of the new node (Aug 26, 2010 2:56:41 PM) is

not synchronized with that of the deployment manager (Aug 26, 2010 2:39:00 PM).

[8/26/10 14:56:42:024 GMT+08:00] 0000000a AdminTool     A   ADMU0125E: Change the clock of the new node to be within 5 minutes of th

e clock of the deployment manager.

[8/26/10 14:56:42:037 GMT+08:00] 0000000a AdminTool     A   ADMU0027E: An error occurred during federation <null>; rolling back to o

riginal configuration.


date -s "2010-08-26 15:05:00"


ADMU0027E: An error occurred during federation ADMU0036E: The Deployment

          Manager cannot lookup by name host JTsxwebtest2 at address

          0:0:0:0:0:0:0:1; rolling back to original configuration.


vi /etc/hosts


10.192.18.119 JTsxwebtest1

10.192.18.120 JTsxwebtest2

10.192.18.129 JTsxwebtest3



./manageprofiles.sh -create -profileName AppSrv01 -profilePath /cpic/jtsx/IBM/WebSphere/AppServer/profiles/AppSrv01 -templatePath /cpic/jtsx/IBM/WebSphere/AppServer/profileTemplates/default -nodeName AppSrv03Node -cellName AppSrv03NodeCell -hostName JTsxwebtest1


./addNode.sh -profileName AppSrv01 10.192.18.119 8879


Startup WEB SERVER

cd /cpic/jtsx/IBM/HTTPServer/bin

[jtsx@JTsxwebtest2 bin]$ ./apachectl start

httpd: Could not determine the server's fully qualified domain name, using 10.192.18.120 for ServerName

(13)Permission denied: make_sock: could not bind to address [::]:80

no listening sockets available, shutting down

Unable to open logs

[root@JTsxwebtest2 bin]# ./apachectl start


你可能感兴趣的:(websphere,Linux下的安装过程)