文档库 最新最全的文档下载
当前位置:文档库 › websphere静默安装

websphere静默安装

cd /image/WAS
./install -silent -options "/image/WAS/responsefile.nd.txt"

Refer to the sample response file, change them according to your environment.
For example, I want to install WAS only, without any profiles, without global security, which maybe a simplest install, I'll change these properties in the file:

-OPT silentInstallLicenseAcceptance="true"
-OPT disableOSPrereqChecking="true"
-OPT disableNonBlockingPrereqChecking="true"
-OPT installType="installNew"
#-OPT createProfile="true"
-OPT feature="noFeature"
-OPT installLocation="/opt/IBM/WebSphere/AppServer"
-OPT profileType="none"
-OPT PROF_enableAdminSecurity="false"
......

Then after installation, I'll run /bin/manageprofiles.sh -create .... to create a profile. Run manageprofiles.sh -help for detailed description.

WAS的安装

1.解冻WAS。。

gzip -dc ??.tar.gz | tar -xvf -

2.编辑WAS自带的responsefile.nd.txt文件。

#主要有以下几个设定。

-OPT silentInstallLicenseAcceptance="true" #接受License。

-OPT disableOSPrereqChecking="true" #因为OS的环境已经是AIX5.3TL7Sp5所以在这里取消对系统的检测。

-OPT installType="installNew" #装载为全新。

##-OPT createProfile="false" <---修改 因该为注销。。2008.09.02

-OPT feature="noFeature" #不装feature Pack。

-OPT installLocation="/opt/IBM/WebSphere/AppServer" #Install地址的指定。

-OPT profileType="none" #Profile的生成Type为none (为了防止证明书有效期限为1年的问题,在这里先不生成Profile)

-OPT PROF_enableAdminSecurity="true" #增加Administrative Security的配置。

-OPT PROF_adminUserName="wasadmin" #指定user名

-OPT PROF_adminPassword="passwd" #指定Password

3.执行以下命令。

./install -options /tmp/WAS/responsefile.nd.txt -silent

4.等待数分钟后,画面上会出现[INSTCONFSUCCESS]的字段。

-〉装载成功

5.再察看一下,这里的日志。

/opt/IBM/WebSphere/AppServer/logs/install/log.txt

(2008/08/21 19:59:15), Process, com.ibm.ws.install.ni.ismp.actions.InstallNIFPackage, msg1, 構成コマンドを実行中: 97SInstallInvokeWSProfile、完了率: 100%
(2008/08/21 19:59:23), Process, com.ibm.ws.install.ni.ismp.actions.SettleNIFRegistryAction, msg1, 現行インストール/アンインストール処理は正常に終了しました。 プロセス?タイプ: install
(2008/08/21 19:59:23), Process, com.ibm.ws.install.ni.ismp.actions.SetExitCodeAction, msg1, CWUPI0000I: EXITCODE=0
(2008/08/21 19:59:23), Process, com.ibm.ws.install.ni.ismp.actions.ISMPLogSuccessMessageAction, msg1,INSTCONFSUCCESS


======================================安装UpdateInstaller=========================================



1.解冻updii.61017.aix.ppc64.zip文件。

〉 unzip updii.61017.aix.ppc64.zip

2.编辑文件。

-OPT silentInstallLicenseAcceptance="true"

-OPT installLocation="/opt/IBM/WebSphere/Upd

ateInstaller"

3.执行下述命令。

./install -silent -options "/tmp/install/responsefile.updiinstaller.txt"

4.察看install的日志。

/opt/IBM/WebSphere/UpdateInstaller/logs/install/log.txt
(Aug 19, 2008 6:41:20 PM), Install, com.ibm.ws.install.ni.ismp.actions.InstallNIFPackage, msg1, Installing component: https://www.wendangku.net/doc/8f1586131.html,ponentmap.jre, percent complete: 97%
(Aug 19, 2008 6:41:20 PM), Install, com.ibm.ws.install.ni.ismp.actions.InstallNIFPackage, msg1, Installing component: package.java.jre, percent complete: 97%
(Aug 19, 2008 6:41:22 PM), Install, com.ibm.ws.install.ni.ismp.actions.InstallNIFPackage, msg1, Installing component: package.java.jre, percent complete: 98%
(Aug 19, 2008 6:41:24 PM), Install, com.ibm.ws.install.ni.ismp.actions.InstallNIFPackage, msg1, Installing component: package.java.jre, percent complete: 99%
(Aug 19, 2008 6:41:25 PM), Install, com.ibm.ws.install.ni.ismp.actions.InstallNIFPackage, msg1, Installing component: package.java.jre, percent complete: 100%
(Aug 19, 2008 6:41:26 PM), Install, com.ibm.ws.install.ni.ismp.actions.InstallNIFPackage, msg1, Running configuration command: 90SCreateEmptyUPDIDirs, percent complete: 100%
(Aug 19, 2008 6:41:26 PM), Install, com.ibm.ws.install.ni.ismp.actions.SettleNIFRegistryAction, msg1, Current install/uninstall process is successful. Process type is: install
(Aug 19, 2008 6:41:26 PM), Install, com.ibm.ws.install.ni.ismp.actions.SetExitCodeAction, msg1, CWUPI0000I: EXITCODE=0
(Aug 19, 2008 6:41:26 PM), Install, com.ibm.ws.install.ni.ismp.actions.ISMPLogSuccessMessageAction, msg1,INSTCONFSUCCESS



=====================================================升级=================================================

1.下载JDK及WAS本身的fixpack。。

6.1.0-WS-WASSDK-AixPPC64-FP0000017.pak

6.1.0-WS-WAS-AixPPC64-FP0000017.pak

2.把其移到/opt/IBM/WebSphere/UpdateInstaller/maintenance里。

3.修改install.txt。

-W maintenance.package="/opt/IBM/WebSphere/UpdateInstaller/maintenance/6.1.0-WS-WASSDK-AixPPC64-FP0000017.pak"

-W product.location="/opt/IBM/WebSphere/AppServer"

-W update.type="install"



4.执行下述命令,确认Java版本。

/opt/IBM/WebSphere/AppServer/java/jre/bin/java -version

java version "1.5.0"
Java(TM) 2 Runtime Environment, Standard Edition (build pap64dev-20060511 (SR2))
IBM J9 VM (build 2.3, J2RE 1.5.0 IBM J9 2.3 AIX ppc64-64 j9vmap6423-20060504 (JIT enabled)
J9VM - 20060501_06428_BHdSMr
JIT - 20060428_1800_r8
GC - 20060501_AA)
JCL - 20060511a


5.执行下述命令,装载fixpack

./update.sh -options responsefiles/install.txt -silent

6.察看下述文件。

/opt/IBM/WebSphere/AppServer/logs/update/6.1.0-WS-WASSDK-AixPPC64-FP0000017.install/updatelog.txt

(2008/08/21 14:59:59), Install, com.ibm.ws.install.ni.ismp.actions.SettleNIFRegistryAction, msg1, 現行インストール/アンインストール処理は正常に終了しました。 プロセス?タイプ: maint

enance
(2008/08/21 14:59:59), Install, com.ibm.ws.install.ni.ismp.actions.SetExitCodeAction, msg1, CWUPI0000I: EXITCODE=0
(2008/08/21 14:59:59), Install, com.ibm.ws.install.ni.ismp.actions.ISMPLogSuccessMessageAction, msg1,INSTCONFSUCCESS


7 .执行下述命令,确认Java版本。

/opt/IBM/WebSphere/AppServer/java/jre/bin/java -version

java version "1.5.0"
Java(TM) 2 Runtime Environment, Standard Edition (build pap64dev-20080315 (SR7))
IBM J9 VM (build 2.3, J2RE 1.5.0 IBM J9 2.3 AIX ppc64-64 j9vmap6423-20080315 (JIT enabled)
J9VM - 20080314_17962_BHdSMr
JIT - 20080130_0718ifx2_r8
GC - 200802_08)
JCL - 20080314

====================================================安装profile========================================
执行下述命令,搞定profile.....

--DMGR(Server1下执行)
./manageprofiles.sh -create
-templatePath /opt/IBM/WebSphere/AppServer/profileTemplates/cell/dmgr
-nodeProfilePath /opt/IBM/WebSphere/AppServer/profiles/AppSrv01
-profileName Dmgr01
-cellName testCell01
-nodeName testCell01Manager01
-appServerNodeName testCell01Node01
-enableAdminSecurity true
-adminUserName wasadmin
-adminPassword password
-validatePorts

--AppSer(Server1下执行)
./manageprofiles.sh -create
-templatePath /opt/IBM/WebSphere/AppServer/profileTemplates/cell/default
-dmgrProfilePath /opt/IBM/WebSphere/AppServer/profiles/Dmgr01
-portsFile /opt/IBM/WebSphere/AppServer/profiles/Dmgr01/properties/portdef.props
-nodePortsFile /opt/IBM/WebSphere/AppServer/profiles/Dmgr01/properties/nodeportdef.props
-profileName AppSrv01
-cellName testCell01
-nodeName testCell01Manager01
-appServerNodeName testCell01Node01
-enableAdminSecurity true
-adminUserName wasadmin
-adminPassword password

--AppSer(Server2下执行)

./manageprofiles.sh -create -profileName AppSrv01
-profilePath /opt/IBM/WebSphere/AppServer/profiles/AppSrv01
-templatePath /opt/IBM/WebSphere/AppServer/profileTemplates/default
-nodeName testCell02Node01
-cellName testCell02
-isDefault
-enableAdminSecurity true
-adminUserName wasadmin
-adminPassword password
-validatePorts

==================================================================================================

小知识,强制删除profile的方法。。

命令是啥意思,大家自己查查看。

①./manageprofiles.sh -delete -profileName Dmgr01

②rm -R /opt/IBM/WebSphere/AppServer/profiles/Dmgr01

③manageprofiles.sh -validateRegistry

下述porfile文件为无效:
[Dmgr01]

④manageprofiles.sh -validateAndUpdateRegistry -profileName Dmgr01
[Dmgr01]

⑤./manageprofiles.sh -validateRegistry
registory里的profile全部有效。

相关文档
相关文档 最新文档