linux下WebSphere8.5静默(命令行)安装升级及升级jdk1.8

时间:2024-03-13 10:07:49

①准备资源文件

1.在官网下载这些文件(如果没有可以邮件问我要[email protected]

linux下WebSphere8.5静默(命令行)安装升级及升级jdk1.8

2.目录结构

InstallManager安装源位置:/home/software/was/agent

was安装源位置:/home/software/was/wasnd

was补丁包位置:/home/software/was/suppl

InstallManager安装位置:/opt/IBM/InstallationManager/

was安装位置:/opt/IBM/WebSphere/AppServer

②安装

1.安装IMS

mkdir -p /opt/IBM/InstallationManager/eclipse

cd /home/software/was/agent

./userinstc -installationDirectory /opt/IBM/InstallationManager/eclipse -acceptLicense

2.获取版本号

cd /opt/IBM/InstallationManager/eclipse/tools

./imcl listAvailablePackages -repositories /home/software/was/wasnd

我的结果是:com.ibm.websphere.ND.v85_8.5.5000.20130514_1044

3.开始安装

./imcl install  com.ibm.websphere.ND.v85_8.5.5000.20130514_1044 
-repositories /home/software/was/wasnd/repository.config 
-installationDirectory /opt/IBM/WebSphere/AppServer 
-sharedResourcesDirectory /opt/IBM/IMShared 
-properties cic.selector.nl=zh 
-acceptLicense 

4.创建管理概要文件

cd /opt/IBM/WebSphere/AppServer/bin

./manageprofiles.sh -create 
-profileName Dmgr01 
-profilePath /opt/IBM/WebSphere/AppServer/profiles/Dmgr01 
-templatePath /opt/IBM/WebSphere/AppServer/profileTemplates/dmgr/ -hostName 127.0.0.1

5.创建应用概要文件

./manageprofiles.sh -create -profileName AppSvr01

 -profilePath /opt/IBM/WebSphere/AppServer/profiles/AppSvr01/

-templatePath /opt/IBM/WebSphere/AppServer/profileTemplates/default

-hostName 127.0.0.1

6.启动管理控制

/opt/IBM/WebSphere/AppServer/profiles/Dmgr01/bin/startManager.sh

7.添加应用概要到管理节点

cd /opt/IBM/WebSphere/AppServer/profiles/AppSvr01/bin

 

./addNode.sh 127.0.0.1 8879 -username admin -password admin123

8.创建受管制节点

cd /opt/IBM/WebSphere/AppServer/bin

./manageprofiles.sh -create -templatePath /opt/IBM/WebSphere/AppServer/profileTemplates/managed

-profileName 145node1 -profilePath /opt/IBM/WebSphere/AppServer/profiles/145node1

-isDefault -omitAction -hostName  127.0.0.1

9.安装IHS

挂载IHS安装包仓库文件

cd /opt/IBM/InstallationManager/eclipse/tools

./imcl listAvailablePackages -repositories /home/software/was/suppl

com.ibm.websphere.APPCLIENT.v85_8.5.5000.20130514_1044
com.ibm.websphere.IHS.v85_8.5.5000.20130514_1044
com.ibm.websphere.PLG.v85_8.5.5000.20130514_1044
com.ibm.websphere.PLUGCLIENT.v85_8.5.5000.20130514_1044
com.ibm.websphere.WCT.v85_8.5.5000.20130514_1044

执行安装命令

./imcl install com.ibm.websphere.IHS.v85_8.5.5000.20130514_1044 
-repositories /home/software/was/suppl/repository.config 
-installationDirectory /opt/IBM/HTTPServer 
-nl zh 
-properties "user.ihs.httpPort=8080,user.ihs.allowNonRootSilentInstall=true,cic.selector.nl=zh"  
-acceptLicense 
-showVerboseProgress

10.安装IHS_Plugin

./imcl install com.ibm.websphere.PLG.v85_8.5.5000.20130514_1044 
-repositories /home/software/was/suppl/repository.config 
-installationDirectory /opt/IBM/WebSphere/Plugins 
-nl zh 
-acceptLicense 
-showVerboseProgress

11.安装WCT

./imcl install com.ibm.websphere.WCT.v85_8.5.5000.20130514_1044 
-repositories  /home/software/was/suppl/repository.config \
-installationDirectory /opt/IBM/WebSphere/Toolbox 
-nl zh 
-acceptLicense 
-showVerboseProgress

安装完成

③升级补丁

1.安装补丁

cd /opt/IBM/InstallationManager/eclipse/tools

./imcl listAvailablePackages -repositories /home/software/was/FP013
./imcl listAvailablePackages -repositories /home/software/was/wassupplements
./imcl listAvailablePackages -repositories /home/software/was/wct
./imcl listAvailablePackages -repositories /home/software/was/IBMWASJAVA

2.升级补丁

./imcl updateAll 
-repositories /home/software/was/FP013/repository.config 
-installationDirectory /opt/IBM/WebSphere/AppServer 
-nl zh 
-acceptLicense 
-showVerboseProgress

3.升级wassdk补丁

./imcl updateAll 
-repositories /home/software/was/IBMWASJAVA/repository.config 
-installationDirectory /opt/IBM/WebSphere/AppServer 
-nl zh 
-acceptLicense 
-showVerboseProgress

4.升级IHS补丁

./imcl updateAll 
-repositories /home/software/was/wassupplements/repository.config 
-installationDirectory /opt/IBM/HTTPServer 
-nl zh 
-acceptLicense 
-showVerboseProgress

5.升级wassdk补丁

./imcl updateAll 
-repositories /home/software/was/IBMWASJAVA/repository.config 
-installationDirectory /opt/IBM/HTTPServer 
-nl zh 
-acceptLicense 
-showVerboseProgress

6.升级IHS_Plugin补丁

./imcl updateAll 
-repositories /home/software/was/wassupplements/repository.config 
-installationDirectory /opt/IBM/WebSphere/Plugins 
-nl zh 
-acceptLicense 
-showVerboseProgress

7.升级WASSDK补丁

./imcl updateAll 
-repositories /home/software/was/IBMWASJAVA/repository.config 
-installationDirectory /opt/IBM/WebSphere/Plugins 
-nl zh 
-acceptLicense 
-showVerboseProgress

8.升级ToolBox补丁

./imcl updateAll 
-repositories /home/software/was/wct/repository.config 
-installationDirectory /opt/IBM/WebSphere/Toolbox 
-nl zh 
-acceptLicense 
-showVerboseProgress

9.升级WASSDK补丁

./imcl updateAll 
-repositories /home/software/was/IBMWASJAVA/repository.config 
-installationDirectory /opt/IBM/WebSphere/Toolbox 
-nl zh 
-acceptLicense 
-showVerboseProgress

升级补丁结束

④升级JDK版本为1.8

1.挂载补丁

cd /opt/IBM/InstallationManager/eclipse/tools

./imcl listAvailablePackages -repositories /home/software/was/IBMWASJAVA

com.ibm.websphere.IBMJAVA.v80_8.0.5006.20171219_1611
com.ibm.websphere.liberty.IBMJAVA.v80_8.0.5006.20171219_1611

2.安装jdk1.8补丁

./imcl install com.ibm.websphere.IBMJAVA.v80_8.0.5006.20171219_1611 
-repositories /home/software/was/IBMWASJAVA/repository.config 
-installationDirectory /opt/IBM/WebSphere/AppServer
-nl zh 
-acceptLicense 
-showVerboseProgress

在/opt/IBM/WebSphere/AppServer目录下就会多出一个文件夹

linux下WebSphere8.5静默(命令行)安装升级及升级jdk1.8

3.升级验证

cd /opt/IBM/WebSphere/AppServer/profiles/AppSrv01/bin

./managesdk.sh -listAvailable

linux下WebSphere8.5静默(命令行)安装升级及升级jdk1.8

显示这个表示安装成功

4.配置使用JDK1.8

./managesdk.sh -getNewProfileDefault

./managesdk.sh -setNewProfileDefault -sdkName 1.8_64

./managesdk.sh -enableProfileAll -sdkName 1.8_64

然后在控制台配置

linux下WebSphere8.5静默(命令行)安装升级及升级jdk1.8

linux下WebSphere8.5静默(命令行)安装升级及升级jdk1.8

 

linux下WebSphere8.5静默(命令行)安装升级及升级jdk1.8

验证JDK版本

重启配置完jdk1.8的server,查看JVM日志

linux下WebSphere8.5静默(命令行)安装升级及升级jdk1.8

配置结束,可以使用了!!!