打印

IBM WAS 9.0.5.X ND静默安装、补丁升级之Linux篇

IBM WAS 9.0.5.X ND静默安装、补丁升级之Linux篇

IBM WAS 9.0.5.X ND静默安装、补丁升级、版本回滚、软件卸载脚本与操作说明之Linux篇

准备工作:上传安装介质到服务器上的指定目录下,比如 /opt/IBM/SoftwareImage 目录下


提示 : 需要以管理员身份进行安装

以管理员身份运行 cmd 进入命令行方式

一、上传介质与补丁
# export IMAGE_HOME=/mnt/hgfs/IBMSoftware/WebSphere/WAS
export IMAGE_HOME=/opt/IBM/SoftwareImage
mkdir -p $IMAGE_HOME
mkdir -p $IMAGE_HOME/IIM
mkdir -p $IMAGE_HOME/WAS9.0.5.1ND
mkdir -p $IMAGE_HOME/WAS9.0.5.1ND-Fix
cd $IMAGE_HOME

上传介质与补丁到如下相应的目录中
1、IIM : 包含IIM与IIM新版本
2、WAS9.0.5.1ND : 包含JDK、WAS、IHS、PLG、WCT、AC
3、WAS9.0.5.1ND-Fix : 包含JDK、WAS、IHS、PLG、WCT、AC补丁


设置各个组件的安装路径,可根据需要进行调整
# WAS ND安装路径
export WAS_HOME=/opt/IBM/WebSphere/AppServer/9.0.5
# IHS安装路径
export IHS_HOME=/opt/IBM/HTTPServer/9.0.5
# PLG安装路径
export PLG_HOME=/opt/IBM/WebSphere/Plugins/9.0.5
# WCT安装路径
export WCT_HOME=/opt/IBM/WebSphere/Toolbox/9.0.5
# AC安装路径
export AC_HOME=/opt/IBM/WebSphere/AppClient/9.0.5



二、解压IIM并安装
yum -y install unzip

安装路径为 /opt/IBM
export IBM_HOME=/opt/IBM
mkdir -p $IBM_HOME/IIM

cd $IMAGE_HOME/IIM
unzip agent.installer.linux.gtk.x86_64_1.9.2000.20211110_1250.zip -d $IBM_HOME/IIM
cd $IBM_HOME/IIM
ls -ltra

直接通过命令行执行 -installationDirectory 选项来直接指定安装的路径,执行:
chmod +x installc
chmod +x jre_8.0.6036.20211005_1455/jre/bin/java
./installc -acceptLicense -installationDirectory /opt/IBM/InstallationManager/eclipse

安装成功后提示
Installed com.ibm.cic.agent_1.9.2000.20211110_1250 to the /opt/IBM/InstallationManager/eclipse directory.


确认安装
export IIM_HOME=/opt/IBM/InstallationManager
export IMCL=$IIM_HOME/eclipse/tools/imcl

查看帮助
$IMCL help

查看版本
$IMCL version
Installation Manager (installed)
Version: 1.9.2
Internal Version: 1.9.2000.20211110_1250
Architecture: 64-bit

$IMCL listInstalledPackages
com.ibm.cic.agent_1.9.2000.20211110_1250

$IMCL listInstalledPackages -long
/opt/IBM/InstallationManager/eclipse : com.ibm.cic.agent_1.9.2001.20211222_1411 : IBMInstallation Manager : 1.9.2.1

删除IIM解压出来的安装文件
cd $IBM_HOME
rm -fr $IBM_HOME/IIM



三、安装
1、安装WAS ND(IBM WebSphere Application Server Network Deployment)

export IIM_HOME=/opt/IBM/InstallationManager
export IMCL=$IIM_HOME/eclipse/tools/imcl

$IMCL listInstalledPackages
com.ibm.cic.agent_1.9.2000.20211110_1250

# $IMCL -accessRights nonAdmin listInstalledPackages

cd $IMAGE_HOME/WAS9.0.5.1ND


如果是从WAS 9.0.5.0ND开始安装,则在安装9.0.5.0时是同时还需要9.0.0.0的原始包,因此本文是WAS 9.0.5.1ND版本的安装,并不需要WAS 9.0.0.0ND的原始包
WAS 9.0.5.0实际上就是代替9.0.0.12版本的,9.0.5.1就是9.0.0.13,因此在9.0.0.XX系列中只有最高的9.0.0.11版本。
WAS 9.0.5 replaces the existing WAS 9.0.0.x service stream. The WAS 9.0.5.0 release will replace the 9.0.0.12 fix pack and all future 9.0.0.x fix packs. For example, WAS 9.0.5.0 replaces WAS 9.0.0.12, WAS 9.0.5.1 replaces 9.0.0.13, etc. No migration is required for WAS 9.0 customers to apply WAS 9.0.5.0. For customers on WAS 8.5.5 that wish to migrate to WAS 9.0.5, the normal version-to-version migration applies.
9.0.5.0 == 9.0.0.12
9.0.5.1 == 9.0.0.13


$IMCL listAvailablePackages -long -repositories sdk.repo.8035.java8.linux.zip
sdk.repo.8035.java8.linux.zip : com.ibm.java.jdk.v8_8.0.5035.20190422_0948 : IBM SDK, Java Technology Edition, Version 8 : 8.0.5.35

$IMCL listAvailablePackages -long -repositories was.repo.90501.nd.zip
was.repo.90501.nd.zip : com.ibm.websphere.ND.v90_9.0.5001.20190828_0616 : IBM WebSphere Application Server Network Deployment : 9.0.5.1


开始安装
$IMCL install com.ibm.java.jdk.v8_8.0.5035.20190422_0948 com.ibm.websphere.ND.v90_9.0.5001.20190828_0616 -acceptLicense -sVP -installationDirectory $WAS_HOME -repositories sdk.repo.8035.java8.linux.zip,was.repo.90501.nd.zip > $IMAGE_HOME/JDK8_WAS9.0.5.1.log 2>&1 &
查看日志
tail -f $IMAGE_HOME/JDK8_WAS9.0.5.1.log
Installed com.ibm.websphere.ND.v90_9.0.5001.20190828_0616 to the /opt/IBM/WebSphereAppServer/9.0.5 directory.
Installed com.ibm.java.jdk.v8_8.0.5035.20190422_0948 to the /opt/IBM/WebSphereAppServer/9.0.5 directory.
安装结束,Ctrl + C 退出


确认安装的结果
$IMCL listInstalledPackages
com.ibm.cic.agent_1.9.2000.20211110_1250
com.ibm.java.jdk.v8_8.0.5035.20190422_0948
com.ibm.websphere.ND.v90_9.0.5001.20190828_0616



数据保存目录
/var/ibm/InstallationManager/
ls -ltra /var/ibm/InstallationManager/

比如
installed.xml
installRegistry.xml


验证安装
$WAS_HOME/bin/versionInfo.sh
$WAS_HOME/bin/historyInfo.sh
$WAS_HOME/java/8.0/bin/java -version



2、安装IHS(IBM HTTP Server for WebSphere Application Server)
IHS安装必须要提供两个包,一个是JDK 8,一个是IHS 9.0.5.1的包
sdk.repo.8035.java8.linux.zip
was.repo.90501.ihs.zip


查看安装包的版本
cd $IMAGE_HOME/WAS9.0.5.1ND
$IMCL listAvailablePackages -long -repositories sdk.repo.8035.java8.linux.zip,was.repo.90501.ihs.zip
sdk.repo.8035.java8.linux.zip : com.ibm.java.jdk.v8_8.0.5035.20190422_0948 : IBM SDK, Java Technology Edition, Version 8 : 8.0.5.35
was.repo.90501.ihs.zip : com.ibm.websphere.IHS.v90_9.0.5001.20190828_0616 : IBM HTTP Server for WebSphere Application Server : 9.0.5.1


以后台的方式进行正式安装,并记录安装日志
$IMCL install com.ibm.java.jdk.v8_8.0.5035.20190422_0948 com.ibm.websphere.IHS.v90_9.0.5001.20190828_0616 -acceptLicense -sVP -installationDirectory $IHS_HOME -repositories sdk.repo.8035.java8.linux.zip,was.repo.90501.ihs.zip > $IMAGE_HOME/JDK8_IHS9.0.5.1.log 2>&1 &

查看日志
tail -f $IMAGE_HOME/JDK8_IHS9.0.5.1.log
Installed com.ibm.websphere.IHS.v90_9.0.5001.20190828_0616 to the /opt/IBM/HTTPServer/9.0.5 directory.
Installed com.ibm.java.jdk.v8_8.0.5035.20190422_0948 to the /opt/IBM/HTTPServer/9.0.5 directory.


确认安装的结果
$IMCL listInstalledPackages
com.ibm.cic.agent_1.9.2000.20211110_1250
com.ibm.java.jdk.v8_8.0.5035.20190422_0948
com.ibm.websphere.ND.v90_9.0.5001.20190828_0616
com.ibm.java.jdk.v8_8.0.5035.20190422_0948
com.ibm.websphere.IHS.v90_9.0.5001.20190828_0616



3、安装PLG(Web Server Plug-ins for IBM WebSphere Application Server)
PLG安装必须要提供两个包,一个是JDK 8,一个是PLG 9.0.5.1的包
sdk.repo.8035.java8.linux.zip
was.repo.90501.plugins.zip


查看安装包的版本
cd $IMAGE_HOME/WAS9.0.5.1ND
$IMCL listAvailablePackages -long -repositories sdk.repo.8035.java8.linux.zip,was.repo.90501.plugins.zip
sdk.repo.8035.java8.linux.zip : com.ibm.java.jdk.v8_8.0.5035.20190422_0948 : IBM SDK, Java Technology Edition, Version 8 : 8.0.5.35
was.repo.90501.plugins.zip : com.ibm.websphere.PLG.v90_9.0.5001.20190828_0616 : Web Server Plug-ins for IBM WebSphere Application Server : 9.0.5.1


以后台的方式进行正式安装,并记录安装日志
$IMCL install com.ibm.java.jdk.v8_8.0.5035.20190422_0948 com.ibm.websphere.PLG.v90_9.0.5001.20190828_0616 -acceptLicense -sVP -installationDirectory $PLG_HOME -repositories sdk.repo.8035.java8.linux.zip,was.repo.90501.plugins.zip > $IMAGE_HOME/JDK8_PLG9.0.5.1.log 2>&1 &

查看日志
tail -f $IMAGE_HOME/JDK8_PLG9.0.5.1.log
Installed com.ibm.websphere.PLG.v90_9.0.5001.20190828_0616 to the /opt/IBM/WebSpherePlugins/9.0.5 directory.
Installed com.ibm.java.jdk.v8_8.0.5035.20190422_0948 to the /opt/IBM/WebSpherePlugins/9.0.5 directory.


确认安装的结果
$IMCL listInstalledPackages
com.ibm.cic.agent_1.9.2000.20211110_1250
com.ibm.java.jdk.v8_8.0.5035.20190422_0948
com.ibm.websphere.ND.v90_9.0.5001.20190828_0616
com.ibm.java.jdk.v8_8.0.5035.20190422_0948
com.ibm.websphere.IHS.v90_9.0.5001.20190828_0616
com.ibm.java.jdk.v8_8.0.5035.20190422_0948
com.ibm.websphere.PLG.v90_9.0.5001.20190828_0616



4、(可选)安装WCT(WebSphere Customization Toolbox)
WCT安装必须要提供两个包,一个是JDK 8,一个是WCT 9.0.5.1的包
sdk.repo.8035.java8.linux.zip
was.repo.90501.wct.zip


查看安装包的版本
cd $IMAGE_HOME/WAS9.0.5.1ND
$IMCL listAvailablePackages -long -repositories sdk.repo.8035.java8.linux.zip,was.repo.90501.wct.zip
sdk.repo.8035.java8.linux.zip : com.ibm.java.jdk.v8_8.0.5035.20190422_0948 : IBM SDK, Java Technology Edition, Version 8 : 8.0.5.35
was.repo.90501.wct.zip : com.ibm.websphere.WCT.v90_9.0.5001.20190828_0616 : WebSphere Customization Toolbox : 9.0.5.1


以后台的方式进行正式安装,并记录安装日志
$IMCL install com.ibm.java.jdk.v8_8.0.5035.20190422_0948 com.ibm.websphere.WCT.v90_9.0.5001.20190828_0616 -acceptLicense -sVP -installationDirectory $WCT_HOME -repositories sdk.repo.8035.java8.linux.zip,was.repo.90501.wct.zip > $IMAGE_HOME/JDK8_WCT9.0.5.1.log 2>&1 &

查看日志
tail -f $IMAGE_HOME/JDK8_WCT9.0.5.1.log
Installed com.ibm.websphere.WCT.v90_9.0.5001.20190828_0616 to the /opt/IBM/WebSphereToolbox/9.0.5 directory.
Installed com.ibm.java.jdk.v8_8.0.5035.20190422_0948 to the /opt/IBM/WebSphereToolbox/9.0.5 directory.


确认安装的结果
$IMCL listInstalledPackages
com.ibm.cic.agent_1.9.2000.20211110_1250
com.ibm.java.jdk.v8_8.0.5035.20190422_0948
com.ibm.websphere.ND.v90_9.0.5001.20190828_0616
com.ibm.java.jdk.v8_8.0.5035.20190422_0948
com.ibm.websphere.IHS.v90_9.0.5001.20190828_0616
com.ibm.java.jdk.v8_8.0.5035.20190422_0948
com.ibm.websphere.PLG.v90_9.0.5001.20190828_0616
com.ibm.java.jdk.v8_8.0.5035.20190422_0948
com.ibm.websphere.WCT.v90_9.0.5001.20190828_0616



5、(可选)安装AC(Application Client for IBM WebSphere Application Server)
Application Client安装必须提供两个包,一个是JDK 8,一个是AC 9.0.5.1的包
sdk.repo.8035.java8.linux.zip
was.repo.90501.applcient.zip


查看安装包的版本
cd $IMAGE_HOME/WAS9.0.5.1ND
$IMCL listAvailablePackages -long -repositories sdk.repo.8035.java8.linux.zip,was.repo.90501.applcient.zip
sdk.repo.8035.java8.linux.zip : com.ibm.java.jdk.v8_8.0.5035.20190422_0948 : IBM SDK, Java Technology Edition, Version 8 : 8.0.5.35
was.repo.90501.applcient.zip : com.ibm.websphere.APPCLIENT.v90_9.0.5001.20190828_0616 : Application Client for IBM WebSphere Application Server : 9.0.5.1


以后台的方式进行正式安装,并记录安装日志
$IMCL install com.ibm.java.jdk.v8_8.0.5035.20190422_0948 com.ibm.websphere.APPCLIENT.v90_9.0.5001.20190828_0616 -acceptLicense -sVP -installationDirectory $AC_HOME -repositories sdk.repo.8035.java8.linux.zip,was.repo.90501.applcient.zip > $IMAGE_HOME/JDK8_AC9.0.5.1.log 2>&1 &

查看日志
tail -f $IMAGE_HOME/JDK8_AC9.0.5.1.log
Installed com.ibm.websphere.APPCLIENT.v90_9.0.5001.20190828_0616 to the /opt/IBM/WebSphereAppClient/9.0.5 directory.
Installed com.ibm.java.jdk.v8_8.0.5035.20190422_0948 to the /opt/IBM/WebSphereAppClient/9.0.5 directory.


确认安装的结果
$IMCL listInstalledPackages
com.ibm.cic.agent_1.9.2000.20211110_1250
com.ibm.java.jdk.v8_8.0.5035.20190422_0948
com.ibm.websphere.ND.v90_9.0.5001.20190828_0616
com.ibm.java.jdk.v8_8.0.5035.20190422_0948
com.ibm.websphere.IHS.v90_9.0.5001.20190828_0616
com.ibm.java.jdk.v8_8.0.5035.20190422_0948
com.ibm.websphere.PLG.v90_9.0.5001.20190828_0616
com.ibm.java.jdk.v8_8.0.5035.20190422_0948
com.ibm.websphere.WCT.v90_9.0.5001.20190828_0616
com.ibm.java.jdk.v8_8.0.5035.20190422_0948
com.ibm.websphere.APPCLIENT.v90_9.0.5001.20190828_0616



6、查看详细的安装信息
$IMCL listInstalledPackages -long
/opt/IBM/InstallationManager/eclipse : com.ibm.cic.agent_1.9.2000.20211110_1250 : IBMInstallation Manager : 1.9.2
/opt/IBM/WebSphereAppServer/9.0.5 : com.ibm.java.jdk.v8_8.0.5035.20190422_0948 : IBM SDK, Java Technology Edition, Version 8 : 8.0.5.35
/opt/IBM/WebSphereAppServer/9.0.5 : com.ibm.websphere.ND.v90_9.0.5001.20190828_0616 : IBM WebSphere Application Server Network Deployment  : 9.0.5.1
/opt/IBM/HTTPServer/9.0.5 : com.ibm.java.jdk.v8_8.0.5035.20190422_0948 : IBM SDK, Java Technology Edition, Version 8 : 8.0.5.35
/opt/IBM/HTTPServer/9.0.5 : com.ibm.websphere.IHS.v90_9.0.5001.20190828_0616 : IBM HTTP Server for WebSphere Application Server : 9.0.5.1
/opt/IBM/WebSpherePlugins/9.0.5 : com.ibm.java.jdk.v8_8.0.5035.20190422_0948 : IBM SDK, Java Technology Edition, Version 8 : 8.0.5.35
/opt/IBM/WebSpherePlugins/9.0.5 : com.ibm.websphere.PLG.v90_9.0.5001.20190828_0616 : Web Server Plug-ins for IBM WebSphere Application Server : 9.0.5.1
/opt/IBM/WebSphereToolbox/9.0.5 : com.ibm.java.jdk.v8_8.0.5035.20190422_0948 : IBM SDK, Java Technology Edition, Version 8 : 8.0.5.35
/opt/IBM/WebSphereToolbox/9.0.5 : com.ibm.websphere.WCT.v90_9.0.5001.20190828_0616 : WebSphere Customization Toolbox : 9.0.5.1
/opt/IBM/WebSphereAppClient/9.0.5 : com.ibm.java.jdk.v8_8.0.5035.20190422_0948 : IBM SDK, Java Technology Edition, Version 8 : 8.0.5.35
/opt/IBM/WebSphereAppClient/9.0.5 : com.ibm.websphere.APPCLIENT.v90_9.0.5001.20190828_0616 : Application Client for IBM WebSphere Application Server : 9.0.5.1



至此,安装步骤结束,后续进行补丁升级与配置概要文件并启动等。



四、升级补丁
1、升级IIM
mkdir $IBM_HOME/IIM

切换到补丁目录
cd $IMAGE_HOME/WAS9.0.5.1ND-Fix
提取文件压缩包到$IBM_HOME/IIM
unzip agent.installer.linux.gtk.x86_64_1.9.2001.20211222_1411.zip -d $IBM_HOME/IIM


直接通过命令行执行 -installationDirectory 选项来直接指定安装的路径,执行:
cd $IBM_HOME/IIM
./installc -acceptLicense -installationDirectory /opt/IBM/InstallationManager/eclipse

升级成功后提示
Updated to com.ibm.cic.agent_1.9.2001.20211222_1411 in the /opt/IBM/InstallationManager/eclipse directory.


确认升级
export IIM_HOME=/opt/IBM/InstallationManager
export IMCL=$IIM_HOME/eclipse/tools/imcl

$IMCL listInstalledPackages | grep "cic"
com.ibm.cic.agent_1.9.2001.20211222_1411

$IMCL listInstalledPackages -long | grep "cic"
/opt/IBM/InstallationManager/eclipse : com.ibm.cic.agent_1.9.2001.20211222_1411 : IBMInstallation Manager : 1.9.2.1


删除IIM安装文件
cd $IBM_HOME
ls -ltra
rm -fr $IBM_HOME/IIM
ls -ltra



2、升级WAS ND(IBM WebSphere Application Server Network Deployment),以9.0.5.10为例,不同版本文件名不同,改之即可
查看升级包的版本
cd $IMAGE_HOME/WAS9.0.5.1ND-Fix
$IMCL listAvailablePackages -long -repositories ibm-java-sdk-8.0-7.0-linux-x64-installmgr.zip
ibm-java-sdk-8.0-7.0-linux-x64-installmgr.zip : com.ibm.java.jdk.v8_8.0.7000.20211025_1430 : IBM SDK, Java Technology Edition, Version 8 : 8.0.7.0

$IMCL listAvailablePackages -long -repositories 9.0.5-WS-WAS-FP010.zip
9.0.5-WS-WAS-FP010.zip : com.ibm.websphere.BASE.v90_9.0.5010.20211108_1200 : IBM WebSphere Application Server : 9.0.5.10
9.0.5-WS-WAS-FP010.zip : com.ibm.websphere.ILAN.v90_9.0.5010.20211108_1200 : IBM WebSphere Application Server (ILAN) : 9.0.5.10
9.0.5-WS-WAS-FP010.zip : com.ibm.websphere.ND.v90_9.0.5010.20211108_1200 : IBM WebSphere Application Server Network Deployment : 9.0.5.10
9.0.5-WS-WAS-FP010.zip : com.ibm.websphere.NDDMZ.v90_9.0.5010.20211108_1200 : DMZ Secure Proxy Server for IBM WebSphere Application Server : 9.0.5.10


以后台的方式进行正式升级,并记录升级日志
$IMCL updateAll -acceptLicense -sVP -installationDirectory $WAS_HOME -repositories ibm-java-sdk-8.0-7.0-linux-x64-installmgr.zip,9.0.5-WS-WAS-FP010.zip > $IMAGE_HOME/JDK8_WAS9.0.5.10.log 2>&1 &
tail -f $IMAGE_HOME/JDK8_WAS9.0.5.10.log
Updated to com.ibm.java.jdk.v8_8.0.7000.20211025_1430 in the /opt/IBM/WebSphereAppServer/9.0.5 directory.
Updated to com.ibm.websphere.ND.v90_9.0.5010.20211108_1200 in the /opt/IBM/WebSphereAppServer/9.0.5 directory.

如果仅是升级WAS,不升级JDK,则,建议注意JDK有新版本也进行升级
$IMCL updateAll -acceptLicense -sVP -installationDirectory $WAS_HOME -repositories 9.0.5-WS-WAS-FP010.zip > $IMAGE_HOME/JDK8_WAS9.0.5.10.log 2>&1 &
tail -f $IMAGE_HOME/JDK8_WAS9.0.5.10.log
Updated to com.ibm.websphere.ND.v90_9.0.5010.20211108_1200 in the /opt/IBM/WebSphereAppServer/9.0.5 directory.


确认升级的结果
$IMCL listInstalledPackages -long | grep "AppServer"
/opt/IBM/WebSphereAppServer/9.0.5 : com.ibm.java.jdk.v8_8.0.7000.20211025_1430 : IBM SDK, Java Technology Edition, Version 8 : 8.0.7.0
/opt/IBM/WebSphereAppServer/9.0.5 : com.ibm.websphere.ND.v90_9.0.5010.20211108_1200 : IBM WebSphere Application Server Network Deployment  : 9.0.5.10


校验更新结果
$WAS_HOME/bin/versionInfo.sh
$WAS_HOME/bin/historyInfo.sh
$WAS_HOME/java/8.0/bin/java -version



3、升级IHS(IBM HTTP Server for WebSphere Application Server)
查看升级包的版本
cd $IMAGE_HOME/WAS9.0.5.1ND-Fix
$IMCL listAvailablePackages -long -repositories 9.0.5-WS-IHSPLG-FP010.zip
9.0.5-WS-IHSPLG-FP010.zip : com.ibm.websphere.IHS.v90_9.0.5010.20211108_1200 : IBM HTTP Server for WebSphere Application Server : 9.0.5.10
9.0.5-WS-IHSPLG-FP010.zip : com.ibm.websphere.PLG.v90_9.0.5010.20211108_1200 : Web Server Plug-ins for IBM WebSphere Application Server : 9.0.5.10


以后台的方式进行正式升级,并记录升级日志
$IMCL updateAll -acceptLicense -sVP -installationDirectory $IHS_HOME -repositories ibm-java-sdk-8.0-7.0-linux-x64-installmgr.zip,9.0.5-WS-IHSPLG-FP010.zip > $IMAGE_HOME/JDK8_IHS9.0.5.10.log 2>&1 &
tail -f $IMAGE_HOME/JDK8_IHS9.0.5.10.log
Updated to com.ibm.java.jdk.v8_8.0.7000.20211025_1430 in the /opt/IBM/HTTPServer/9.0.5 directory.
Updated to com.ibm.websphere.IHS.v90_9.0.5010.20211108_1200 in the /opt/IBM/HTTPServer/9.0.5 directory.


确认安装的结果
$IMCL listInstalledPackages -long | grep "HTTPServer"
/opt/IBM/HTTPServer/9.0.5 : com.ibm.java.jdk.v8_8.0.7000.20211025_1430 : IBM SDK, Java Technology Edition, Version 8 : 8.0.7.0
/opt/IBM/HTTPServer/9.0.5 : com.ibm.websphere.IHS.v90_9.0.5010.20211108_1200 : IBM HTTP Server for WebSphere Application Server : 9.0.5.10


校验更新结果
$IHS_HOME/bin/versionInfo.sh
$IHS_HOME/bin/historyInfo.sh
$IHS_HOME/java/8.0/bin/java -version


4、升级PLG(Web Server Plug-ins for IBM WebSphere Application Server)
查看升级包的版本
cd $IMAGE_HOME/WAS9.0.5.1ND-Fix
$IMCL listAvailablePackages -long -repositories 9.0.5-WS-IHSPLG-FP010.zip
9.0.5-WS-IHSPLG-FP010.zip : com.ibm.websphere.IHS.v90_9.0.5010.20211108_1200 : IBM HTTP Server for WebSphere Application Server : 9.0.5.10
9.0.5-WS-IHSPLG-FP010.zip : com.ibm.websphere.PLG.v90_9.0.5010.20211108_1200 : Web Server Plug-ins for IBM WebSphere Application Server : 9.0.5.10


以后台的方式进行正式升级,并记录升级日志
$IMCL updateAll -acceptLicense -sVP -installationDirectory $PLG_HOME -repositories ibm-java-sdk-8.0-7.0-linux-x64-installmgr.zip,9.0.5-WS-IHSPLG-FP010.zip > $IMAGE_HOME/JDK8_PLG9.0.5.10.log 2>&1 &
tail -f $IMAGE_HOME/JDK8_PLG9.0.5.10.log
Updated to com.ibm.java.jdk.v8_8.0.7000.20211025_1430 in the /opt/IBM/WebSpherePlugins/9.0.5 directory.
Updated to com.ibm.websphere.PLG.v90_9.0.5010.20211108_1200 in the /opt/IBM/WebSpherePlugins/9.0.5 directory.


确认安装的结果
$IMCL listInstalledPackages -long | grep "Plugins"
/opt/IBM/WebSpherePlugins/9.0.5 : com.ibm.java.jdk.v8_8.0.7000.20211025_1430 : IBM SDK, Java Technology Edition, Version 8 : 8.0.7.0
/opt/IBM/WebSpherePlugins/9.0.5 : com.ibm.websphere.PLG.v90_9.0.5010.20211108_1200 : Web Server Plug-ins for IBM WebSphere Application Server : 9.0.5.10


校验更新结果
$PLG_HOME/bin/versionInfo.sh
$PLG_HOME/bin/historyInfo.sh
$PLG_HOME/java/8.0/bin/java -version



5、(可选)升级WCT(WebSphere Customization Toolbox)
查看升级包的版本
cd $IMAGE_HOME/WAS9.0.5.1ND-Fix
$IMCL listAvailablePackages -long -repositories 9.0.5-WS-WCT-FP010.zip
9.0.5-WS-WCT-FP010.zip : com.ibm.websphere.WCT.v90_9.0.5010.20211108_1200 : WebSphere Customization Toolbox : 9.0.5.10


以后台的方式进行正式升级,并记录升级日志
$IMCL updateAll -acceptLicense -sVP -installationDirectory $WCT_HOME -repositories ibm-java-sdk-8.0-7.0-linux-x64-installmgr.zip,9.0.5-WS-WCT-FP010.zip > $IMAGE_HOME/JDK8_WCT9.0.5.10.log 2>&1 &
tail -f $IMAGE_HOME/JDK8_WCT9.0.5.10.log
Updated to com.ibm.java.jdk.v8_8.0.7000.20211025_1430 in the /opt/IBM/WebSphereToolbox/9.0.5 directory.
Updated to com.ibm.websphere.WCT.v90_9.0.5010.20211108_1200 in the /opt/IBM/WebSphereToolbox/9.0.5 directory.


确认安装的结果
$IMCL listInstalledPackages -long | grep "Toolbox"
/opt/IBM/WebSphereToolbox/9.0.5 : com.ibm.java.jdk.v8_8.0.7000.20211025_1430 : IBM SDK, Java Technology Edition, Version 8 : 8.0.7.0
/opt/IBM/WebSphereToolbox/9.0.5 : com.ibm.websphere.WCT.v90_9.0.5010.20211108_1200 : WebSphere Customization Toolbox : 9.0.5.10


校验更新结果
$WCT_HOME/bin/versionInfo.sh
$WCT_HOME/bin/historyInfo.sh
$WCT_HOME/java/8.0/bin/java -version



6、(可选)升级AC(Application Client for IBM WebSphere Application Server)
查看升级包的版本
cd $IMAGE_HOME/WAS9.0.5.1ND-Fix
$IMCL listAvailablePackages -long -repositories 9.0.5-WS-APPCLT-FP010.zip
9.0.5-WS-APPCLT-FP010.zip : com.ibm.websphere.APPCLIENT.v90_9.0.5010.20211108_1200 : Application Client for IBM WebSphere Application Server : 9.0.5.10


以后台的方式进行正式升级,并记录升级日志
$IMCL updateAll -acceptLicense -sVP -installationDirectory $AC_HOME -repositories ibm-java-sdk-8.0-7.0-linux-x64-installmgr.zip,9.0.5-WS-APPCLT-FP010.zip > $IMAGE_HOME/JDK8_AC9.0.5.10.log 2>&1 &
tail -f $IMAGE_HOME/JDK8_AC9.0.5.10.log
Updated to com.ibm.java.jdk.v8_8.0.7000.20211025_1430 in the /opt/IBM/WebSphereAppClient/9.0.5 directory.
Updated to com.ibm.websphere.APPCLIENT.v90_9.0.5010.20211108_1200 in the /opt/IBM/WebSphereAppClient/9.0.5 directory.


确认安装的结果
$IMCL listInstalledPackages -long | grep "AppClient"
/opt/IBM/WebSphereAppClient/9.0.5 : com.ibm.java.jdk.v8_8.0.7000.20211025_1430 : IBM SDK, Java Technology Edition, Version 8 : 8.0.7.0
/opt/IBM/WebSphereAppClient/9.0.5 : com.ibm.websphere.APPCLIENT.v90_9.0.5010.20211108_1200 : Application Client for IBM WebSphere Application Server : 9.0.5.10


校验更新结果
$AC_HOME/bin/versionInfo.sh
$AC_HOME/bin/historyInfo.sh
$AC_HOME/java/8.0/bin/java -version



五、创建概要文件,创建集群,创建IHS集群分发,部署应用等相关配置与操作步骤参见
http://www.Java2Class.net/bbs/viewthread.php?tid=285



六、卸载补丁或回滚版本
提示 : 需要记下升级前的版本,这样便于进行回退到之前的任一版本,比如:
export JDK_ROLLBACK=com.ibm.java.jdk.v8_8.0.5035.20190422_0948
export WAS_ROLLBACK=com.ibm.websphere.ND.v90_9.0.5001.20190828_0616
export IHS_ROLLBACK=com.ibm.websphere.IHS.v90_9.0.5001.20190828_0616
export PLG_ROLLBACK=com.ibm.websphere.PLG.v90_9.0.5001.20190828_0616
export WCT_ROLLBACK=com.ibm.websphere.WCT.v90_9.0.5001.20190828_0616
export AC_ROLLBACK=com.ibm.websphere.APPCLIENT.v90_9.0.5001.20190828_0616


1、回滚WAS ND
$IMCL rollback $JDK_ROLLBACK $WAS_ROLLBACK -acceptLicense -sVP -installationDirectory $WAS_HOME > $IMAGE_HOME/JDK8_WAS9.0.5.1_Rollback.log 2>&1 &
tail -f $IMAGE_HOME/JDK8_WAS9.0.5.1_Rollback.log
Rolled back to com.ibm.java.jdk.v8_8.0.5035.20190422_0948 in the /opt/IBM/WebSphereAppServer/9.0.5 directory.
Rolled back to com.ibm.websphere.ND.v90_9.0.5001.20190828_0616 in the /opt/IBM/WebSphereAppServer/9.0.5 directory.

确认回滚的结果
$IMCL listInstalledPackages -long | grep "AppServer"
/opt/IBM/WebSphereAppServer/9.0.5 : com.ibm.java.jdk.v8_8.0.5035.20190422_0948 : IBM SDK, Java Technology Edition, Version 8 : 8.0.5.35
/opt/IBM/WebSphereAppServer/9.0.5 : com.ibm.websphere.ND.v90_9.0.5001.20190828_0616 : IBM WebSphere Application Server Network Deployment  : 9.0.5.1

校验回滚结果
$WAS_HOME/bin/versionInfo.sh
$WAS_HOME/bin/historyInfo.sh
$WAS_HOME/java/8.0/bin/java -version


2、回滚IHS
$IMCL rollback $JDK_ROLLBACK $IHS_ROLLBACK -acceptLicense -sVP -installationDirectory $IHS_HOME > $IMAGE_HOME/JDK8_IHS9.0.5.1_Rollback.log 2>&1 &
tail -f $IMAGE_HOME/JDK8_IHS9.0.5.1_Rollback.log
Rolled back to com.ibm.java.jdk.v8_8.0.5035.20190422_0948 in the /opt/IBM/HTTPServer/9.0.5 directory.
Rolled back to com.ibm.websphere.IHS.v90_9.0.5001.20190828_0616 in the /opt/IBM/HTTPServer/9.0.5 directory.

确认回滚的结果
$IMCL listInstalledPackages -long | grep "IHS"
/opt/IBM/HTTPServer/9.0.5 : com.ibm.websphere.IHS.v90_9.0.5001.20190828_0616 : IBM HTTP Server for WebSphere Application Server : 9.0.5.1

校验回滚结果
$IHS_HOME/bin/versionInfo.sh
$IHS_HOME/bin/historyInfo.sh
$IHS_HOME/java/8.0/bin/java -version


3、回滚PLG
$IMCL rollback $JDK_ROLLBACK $PLG_ROLLBACK -acceptLicense -sVP -installationDirectory $PLG_HOME > $IMAGE_HOME/JDK8_PLG9.0.5.1_Rollback.log 2>&1 &
tail -f $IMAGE_HOME/JDK8_PLG9.0.5.1_Rollback.log
Rolled back to com.ibm.java.jdk.v8_8.0.5035.20190422_0948 in the /opt/IBM/WebSpherePlugins/9.0.5 directory.
Rolled back to com.ibm.websphere.PLG.v90_9.0.5001.20190828_0616 in the /opt/IBM/WebSpherePlugins/9.0.5 directory.

确认回滚的结果
$IMCL listInstalledPackages -long | grep "Plugins"
/opt/IBM/WebSpherePlugins/9.0.5 : com.ibm.java.jdk.v8_8.0.5035.20190422_0948 : IBM SDK, Java Technology Edition, Version 8 : 8.0.5.35
/opt/IBM/WebSpherePlugins/9.0.5 : com.ibm.websphere.PLG.v90_9.0.5001.20190828_0616 : Web Server Plug-ins for IBM WebSphere Application Server : 9.0.5.1

校验回滚结果
$PLG_HOME/bin/versionInfo.sh
$PLG_HOME/bin/historyInfo.sh
$PLG_HOME/java/8.0/bin/java -version


4、(可选)回滚WCT
$IMCL rollback $JDK_ROLLBACK $WCT_ROLLBACK -acceptLicense -sVP -installationDirectory $WCT_HOME > $IMAGE_HOME/JDK8_WCT9.0.5.1_Rollback.log 2>&1 &
tail -f $IMAGE_HOME/JDK8_WCT9.0.5.1_Rollback.log
Rolled back to com.ibm.java.jdk.v8_8.0.5035.20190422_0948 in the /opt/IBM/WebSphereToolbox/9.0.5 directory.
Rolled back to com.ibm.websphere.WCT.v90_9.0.5001.20190828_0616 in the /opt/IBM/WebSphereToolbox/9.0.5 directory.

确认回滚的结果
$IMCL listInstalledPackages -long | grep "Toolbox"
/opt/IBM/WebSphereToolbox/9.0.5 : com.ibm.java.jdk.v8_8.0.5035.20190422_0948 : IBM SDK, Java Technology Edition, Version 8 : 8.0.5.35
/opt/IBM/WebSphereToolbox/9.0.5 : com.ibm.websphere.WCT.v90_9.0.5001.20190828_0616 : WebSphere Customization Toolbox : 9.0.5.1

校验回滚结果
$WCT_HOME/bin/versionInfo.sh
$WCT_HOME/bin/historyInfo.sh
$WCT_HOME/java/8.0/bin/java -version


5、(可选)回滚AC
$IMCL rollback $JDK_ROLLBACK $AC_ROLLBACK -acceptLicense -sVP -installationDirectory $AC_HOME > $IMAGE_HOME/JDK8_AC9.0.5.1_Rollback.log 2>&1 &
tail -f $IMAGE_HOME/JDK8_AC9.0.5.1_Rollback.log
Rolled back to com.ibm.java.jdk.v8_8.0.5035.20190422_0948 in the /opt/IBM/WebSphereAppClient/9.0.5 directory.
Rolled back to com.ibm.websphere.APPCLIENT.v90_9.0.5001.20190828_0616 in the /opt/IBM/WebSphereAppClient/9.0.5 directory.

确认回滚的结果
$IMCL listInstalledPackages -long | grep "AppClient"
/opt/IBM/WebSphereAppClient/9.0.5 : com.ibm.java.jdk.v8_8.0.5035.20190422_0948 : IBM SDK, Java Technology Edition, Version 8 : 8.0.5.35
/opt/IBM/WebSphereAppClient/9.0.5 : com.ibm.websphere.APPCLIENT.v90_9.0.5001.20190828_0616 : Application Client for IBM WebSphere Application Server : 9.0.5.1

校验回滚结果
$AC_HOME/bin/versionInfo.sh
$AC_HOME/bin/historyInfo.sh
$AC_HOME/java/8.0/bin/java -version


6、确认所有组件的详细信息
$IMCL listInstalledPackages -long
/opt/IBM/InstallationManager/eclipse : com.ibm.cic.agent_1.9.2001.20211222_1411 : IBMInstallation Manager : 1.9.2.1
/opt/IBM/WebSphereAppServer/9.0.5 : com.ibm.java.jdk.v8_8.0.5035.20190422_0948 : IBM SDK, Java Technology Edition, Version 8 : 8.0.5.35
/opt/IBM/WebSphereAppServer/9.0.5 : com.ibm.websphere.ND.v90_9.0.5001.20190828_0616 : IBM WebSphere Application Server Network Deployment  : 9.0.5.1
/opt/IBM/HTTPServer/9.0.5 : com.ibm.java.jdk.v8_8.0.5035.20190422_0948 : IBM SDK, Java Technology Edition, Version 8 : 8.0.5.35
/opt/IBM/HTTPServer/9.0.5 : com.ibm.websphere.IHS.v90_9.0.5001.20190828_0616 : IBM HTTP Server for WebSphere Application Server : 9.0.5.1
/opt/IBM/WebSpherePlugins/9.0.5 : com.ibm.java.jdk.v8_8.0.5035.20190422_0948 : IBM SDK, Java Technology Edition, Version 8 : 8.0.5.35
/opt/IBM/WebSpherePlugins/9.0.5 : com.ibm.websphere.PLG.v90_9.0.5001.20190828_0616 : Web Server Plug-ins for IBM WebSphere Application Server : 9.0.5.1
/opt/IBM/WebSphereToolbox/9.0.5 : com.ibm.java.jdk.v8_8.0.5035.20190422_0948 : IBM SDK, Java Technology Edition, Version 8 : 8.0.5.35
/opt/IBM/WebSphereToolbox/9.0.5 : com.ibm.websphere.WCT.v90_9.0.5001.20190828_0616 : WebSphere Customization Toolbox : 9.0.5.1
/opt/IBM/WebSphereAppClient/9.0.5 : com.ibm.java.jdk.v8_8.0.5035.20190422_0948 : IBM SDK, Java Technology Edition, Version 8 : 8.0.5.35
/opt/IBM/WebSphereAppClient/9.0.5 : com.ibm.websphere.APPCLIENT.v90_9.0.5001.20190828_0616 : Application Client for IBM WebSphere Application Server : 9.0.5.1



六、卸载软件
export JDK_ROLLBACK=com.ibm.java.jdk.v8_8.0.5035.20190422_0948
export WAS_ROLLBACK=com.ibm.websphere.ND.v90_9.0.5001.20190828_0616
export IHS_ROLLBACK=com.ibm.websphere.IHS.v90_9.0.5001.20190828_0616
export PLG_ROLLBACK=com.ibm.websphere.PLG.v90_9.0.5001.20190828_0616
export WCT_ROLLBACK=com.ibm.websphere.WCT.v90_9.0.5001.20190828_0616
export AC_ROLLBACK=com.ibm.websphere.APPCLIENT.v90_9.0.5001.20190828_0616


1、卸载WAS ND
$IMCL uninstall $JDK_ROLLBACK $WAS_ROLLBACK -installationDirectory $WAS_HOME > $IMAGE_HOME/JDK8_WAS9.0.5.1_Uninstall.log 2>&1 &
tail -f $IMAGE_HOME/JDK8_WAS9.0.5.1_Uninstall.log
Uninstalled com.ibm.java.jdk.v8_8.0.5035.20190422_0948 from the /opt/IBM/WebSphereAppServer/9.0.5 directory.
Uninstalled com.ibm.websphere.ND.v90_9.0.5001.20190828_0616 from the /opt/IBM/WebSphereAppServer/9.0.5 directory.


确认卸载的结果
$IMCL listInstalledPackages -long



2、卸载IHS
$IMCL uninstall $JDK_ROLLBACK $IHS_ROLLBACK -installationDirectory $IHS_HOME > $IMAGE_HOME/JDK8_IHS9.0.5.1_Uninstall.log 2>&1 &
tail -f $IMAGE_HOME/JDK8_IHS9.0.5.1_Uninstall.log
Uninstalled com.ibm.java.jdk.v8_8.0.5035.20190422_0948 from the /opt/IBM/HTTPServer/9.0.5 directory.
Uninstalled com.ibm.websphere.IHS.v90_9.0.5001.20190828_0616 from the /opt/IBM/HTTPServer/9.0.5 directory.


确认卸载的结果
$IMCL listInstalledPackages -long



3、卸载PLG
$IMCL uninstall $JDK_ROLLBACK $PLG_ROLLBACK -installationDirectory $PLG_HOME > $IMAGE_HOME/JDK8_PLG9.0.5.1_Uninstall.log 2>&1 &
tail -f $IMAGE_HOME/JDK8_PLG9.0.5.1_Uninstall.log
Uninstalled com.ibm.java.jdk.v8_8.0.5035.20190422_0948 from the /opt/IBM/WebSpherePlugins/9.0.5 directory.
Uninstalled com.ibm.websphere.PLG.v90_9.0.5001.20190828_0616 from the /opt/IBM/WebSpherePlugins/9.0.5 directory.


确认卸载的结果
$IMCL listInstalledPackages -long



4、(可选)卸载WCT
$IMCL uninstall $JDK_ROLLBACK $WCT_ROLLBACK -installationDirectory $WCT_HOME > $IMAGE_HOME/JDK8_WCT9.0.5.1_Uninstall.log 2>&1 &
tail -f $IMAGE_HOME/JDK8_WCT9.0.5.1_Uninstall.log
Uninstalled com.ibm.java.jdk.v8_8.0.5035.20190422_0948 from the /opt/IBM/WebSphereToolbox/9.0.5 directory.
Uninstalled com.ibm.websphere.WCT.v90_9.0.5001.20190828_0616 from the /opt/IBM/WebSphereToolbox/9.0.5 directory.


确认卸载的结果
$IMCL listInstalledPackages -long



5、(可选)卸载AC
$IMCL uninstall $JDK_ROLLBACK $AC_ROLLBACK -installationDirectory $AC_HOME > $IMAGE_HOME/JDK8_AC9.0.5.1_Uninstall.log 2>&1 &
tail -f $IMAGE_HOME/JDK8_AC9.0.5.1_Uninstall.log
Uninstalled com.ibm.java.jdk.v8_8.0.5035.20190422_0948 from the /opt/IBM/WebSphereAppClient/9.0.5 directory.
Uninstalled com.ibm.websphere.APPCLIENT.v90_9.0.5001.20190828_0616 from the /opt/IBM/WebSphereAppClient/9.0.5 directory.


确认卸载的结果
$IMCL listInstalledPackages -long



6、最后删除IIM
$IMCL uninstall com.ibm.cic.agent_1.9.2001.20211222_1411 -installationDirectory /opt/IBM/InstallationManager/eclipse
Uninstalled com.ibm.cic.agent_1.9.2001.20211222_1411 from the /opt/IBM/InstallationManager/eclipse directory.



7、清理遗留日志与目录
cd /opt/IBM/
du -sh *
ls -ltra

确认无其他安装包后,再删除整个目录
rm -fr HTTPServer
rm -fr WebSphere
ls -ltra



8、清理安装介质与补丁文件
echo $IMAGE_HOME
ls -ltra $IMAGE_HOME
rm -fr $IMAGE_HOME/*.log
ls -ltra $IMAGE_HOME
rm -fr $IMAGE_HOME
拥抱智慧地球!地球守护使者!

TOP