WebSphere在Linux下的安装过程
PrefTest工作室 张林 实践作品
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 |
|
UpdateInstaller 7.0 |
4 |
WAS.V6.1.Supplements.Linux.X86.tar.gz |
HTTP Server+Plugin |
|
Path |
Descritipn |
1 |
|
IBM WebSphere 6.1 patch |
2 |
|
IBM WebSphere 6.1 patch |
3 |
|
IBM HTTP Server 6.1 path |
4 |
|
Plugin path |
5 |
|
|
Install WAS
- 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"
- 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
- Install WAS
cd <media_location>
java –jar setup.jar –options reponsefile.nd.txt -silent
- Check log:
/cpic/jtsx/IBM/WebSphere/AppServer/logs/install/ log.txt
Install IHS
- Prepare
mkdir -p /cpic/jtsx/IBM/HTTPServer
vi /cpic/jtsx/IHS_
-OPT silentInstallLicenseAcceptance="true"
-OPT allowNonRootSilentInstall=true
-OPT disableOSPrereqChecking="true"
-OPT installLocation="/cpic/jtsx/IBM/HTTPServer"
-OPT createAdminUserGroup=false
- 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_
cd /cpic/jtsx/IHS_
chcon -t texrel_shlib_t *.so
chcon -t texrel_shlib_t xawt/*.so
chcon -t texrel_shlib_t j9vm/*.so
- Install http server
cd <media_location>
java -jar setup.jar -options responsefile.txt –silent
- check log
/cpic/jtsx/IBM/HTTPServer/logs/install/log.txt
Install WAS UpdateInstaller
- 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"
- Install UpdateInstaller
cd <media_location>
java -jar setup.jar -options responsefile.updiinstaller.txt –silent
- check log
/cpic/jtsx/IBM/WebSphere/UpdateInstaller/logs/install/log.txt
Install was patch
- Prepare was sdk path
vi /cpic/jtsx/IBM/WebSphere/UpdateInstaller/responsefiles/install.txt
-W maintenance.package="/cpic/jtsx/
-W product.location="/cpic/jtsx/IBM/WebSphere/AppServer"
- install was sdk path
cd /cpic/jtsx/IBM/WebSphere/UpdateInstaller
./update.sh -options responsefiles/install.txt –silent
- Check log
/cpic/jtsx/IBM/WebSphere/AppServer/logs/update/
- Prepare was path
vi /cpic/jtsx/IBM/WebSphere/UpdateInstaller/responsefiles/install.txt
-W maintenance.package="/cpic/jtsx/
- install was path
cd /cpic/jtsx/IBM/WebSphere/UpdateInstaller
./update.sh -options responsefiles/install.txt –silent
- Check log
/cpic/jtsx/IBM/WebSphere/AppServer/logs/update/
Install IHS patch
- Prepare ihs sdk path
vi /cpic/jtsx/IBM/WebSphere/UpdateInstaller/responsefiles/install.txt
-W maintenance.package="/cpic/jtsx/
-W product.location="/cpic/jtsx/IBM/HTTPServer "
- install was sdk path
cd /cpic/jtsx/IBM/WebSphere/UpdateInstaller
./update.sh -options responsefiles/install.txt –silent
- Check log
/cpic/jtsx/IBM/HTTPServer/logs/update/
Install Plugin
- 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
- 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 –p /cpic/jtsx/IBM/HTTPServer/Plugins
- install plugin
cd <media_location>
java -jar setup.jar -options responsefile.txt –silent
- check log
/cpic/jtsx/IBM/HTTPServer/Plugins/logs/install/log.txt
Install Plugin patch
- Prepare plugin path
vi /cpic/jtsx/IBM/WebSphere/UpdateInstaller/responsefiles/install.txt
-W maintenance.package="/cpic/jtsx/
-W product.location="/cpic/jtsx/IBM/HTTPServer/Plugins"
- install was sdk path
cd /cpic/jtsx/IBM/WebSphere/UpdateInstaller
./update.sh -options responsefiles/install.txt –silent
- Check log
/cpic/jtsx/IBM/HTTPServer/Plugins/logs/update/
Create Deploy Management Node
- 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 –profileName DeployNode
- login Deploy Management Console
http://10.192.18.119:9060/ibm/console
userid:wasadmin
Create Node
- 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]
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]
e clock of the deployment manager.
[8/26/10 14:56:42:037 GMT+08:00]
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]
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]
e clock of the deployment manager.
[8/26/10 14:56:42:037 GMT+08:00]
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
PrefTest工作室 张林 实践作品