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
----------------------------------------------------------------------------------------------
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章