①準備資源文件
1.在官網下載這些文件
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目錄下就會多出一個文件夾
3.升級驗證
cd /opt/IBM/WebSphere/AppServer/profiles/AppSrv01/bin
./managesdk.sh -listAvailable
顯示這個表示安裝成功
4.配置使用JDK1.8
./managesdk.sh -getNewProfileDefault
./managesdk.sh -setNewProfileDefault -sdkName 1.8_64
./managesdk.sh -enableProfileAll -sdkName 1.8_64
然後在控制檯配置
驗證JDK版本
重啓配置完jdk1.8的server,查看JVM日誌
配置結束,可以使用了!!!