Websphere8 AIX静默安装卸载升级

解压was主程序安装包:
[user01:root]:/> gunzip C1G2QML.tar.gz
[user01:root]:/> tar xvf C1G2QML.tar
进入解压后的目录修改安装配置文件:
[user01:root]:/> cd WAS
[user01:root]:/> vi responsefile.nd.txt
  -OPT silentInstallLicenseAcceptance="true"
# -OPT allowNonRootSilentInstall="true"    --如果是非root用户安装,需要此参数
  -OPT installType="installNew"
  -OPT profileType="none"         --不建概要文件,安装完成后再建
  -OPT disableOSPrereqChecking="true"
  -OPT PROF_enableAdminSecurity="false"
# -OPT PROF_adminUserName=
# -OPT PROF_adminPassword=
  -OPT installLocation="/was/WebSphere/AppServer"
--------------------------------------------------------------------------------------------
执行安装命令:
[user01:root]:/> ./install -options ./responsefile.nd.txt -silent
安装was主程序时日志文件:~/waslogs/log.txt
[user01:root]:/> tail -f ~/waslogs/log.txt  查看到有以下内容输出,安装结束
(Jul 15, 2015 2:28:24 PM), Process, com.ibm.ws.install.ni.ismp.mediaspanning.InstallNIFMaintenanceMediaSpanning, msg1, Running configuration command: 97SInstallInvokeWSProfile, percent complete: 100%
(Jul 15, 2015 2:28:28 PM), Process, com.ibm.ws.install.ni.ismp.mediaspanning.InstallNIFMaintenanceMediaSpanning, msg1, Current install/uninstall process is successful. Process type is: install
(Jul 15, 2015 2:28:28 PM), Process, com.ibm.ws.install.ni.ismp.actions.SettleNIFRegistryAction, msg1, Current install/uninstall process is successful. Process type is: install
(Jul 15, 2015 2:28:28 PM), Process, com.ibm.ws.install.ni.ismp.actions.SetExitCodeAction, msg1, CWUPI0000I: EXITCODE=0
(Jul 15, 2015 2:28:28 PM), Process, com.ibm.ws.install.ni.ismp.actions.ISMPLogSuccessMessageAction, msg1, INSTCONFSUCCESS
---------------------------------------------------------------------------------------------
解压安装升级工具包:
[user01:root]:/> gunzip C1G2RML.tar.gz
[user01:root]:/> tar xvf C1G2RML.tar.gz
进入解压后的目录修改安装配置文件:
[user01:root]:/> cd UpdateInstaller
[user01:root]:/> vi responsefile.updiinstaller.txt
  -OPT silentInstallLicenseAcceptance="true"
# -OPT allowNonRootSilentInstall="true"  --如果是非root用户安装,需要此参数
  -OPT disableOSPrereqChecking="true"
  -OPT installLocation="/was/WebSphere/UpdateInstaller"
---------------------------------------------------------------------------------------------
执行安装命令:
[user01:root]:/> ./install -options UpdateInstaller\responsefile.updiinstaller.txt -silent
安装升级工具包时日志文件:/was/WebSphere/UpdateInstaller/logs/install/log.txt
[user01:root]:/> tail -f log.txt  查看安装结果有无异常
----------------------------------------------------------------------------------------------
安装补丁文件:
[user01:root]:/> cd /was/WebSphere/UpdateInstaller/responsefiles
[user01:root]:/> vi install.txt
  -OPT checkFilePermissions="true"
  -W maintenance.package="/opt/was/7.0.0-WS-WASSDK-AixPPC64-FP0000025.pak"  --如果有多个补丁文件,需要多次修改并运行
  -OPT rootUserHasRunSlibcleanCommandSuccessfully="true"   --AIX系统需要此项
  -W product.location="/was/WebSphere/AppServer"
  -W update.type="install"
----------------------------------------------------------------------------------------------
执行安装命令:
[user01:root]:/> ./update.sh -options responsefiles/install.txt -silent
打补丁时日志文件:/was/WebSphere/UpdateInstaller/logs/tmp/updatelog.txt
[user01:root]:/> tail -f updatelog.txt  查看安装结果有无异常
----------------------------------------------------------------------------------------------
卸载was:
卸载之前停止所有与was相关的进程:
[user01:root]:/> cd /was/WebSphere/AppServer/uninstall
[user01:root]:/> ./uninstall -silent   --静默卸载方式
删除websphere安装目录:
[user01:root]:/> rm -rf /was/WebSphere
----------------------------------------------------------------------------------------------
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章