暂无图片
暂无图片
暂无图片
暂无图片
暂无图片

linux静默安装配置was855(ihs+was+配置plugins+打补丁85512)

原创 刘韬 云和恩墨 2021-09-26
2853

一般来说图形环境安装配置会非常方便快捷,但是有些特定的环境:不允许使用图形界面,下面的内容或许会带来帮助。注意下磁盘空间,装个软件单介质就要20g。

环境:
centos7.6(centos141 ihs用途 + centos151 appserver用途)
im: agent.installer.linux.gtk.x86_64_1.8.5000.20160506_1125.zip
appserver: WASV855_ND.tar.gz
ihs plugins wct: WAS_V8.5.5_SUPPL_1_OF_3.zip WAS_V8.5.5_SUPPL_2_OF_3.zip WAS_V8.5.5_SUPPL_3_OF_3.zip
ihs plugins 补丁: 8.5.5-WS-WASSupplements-FP012-part1.zip 8.5.5-WS-WASSupplements-FP012-part2.zip 8.5.5-WS-WASSupplements-FP012-part3.zip
appserver 补丁: 8.5.5-WS-WAS-FP012-part1.zip & 8.5.5-WS-WAS-FP012-part2.zip & 8.5.5-WS-WAS-FP012-part3.zip
wct补丁: 8.5.5-WS-WCT-FP012-part1.zip 8.5.5-WS-WCT-FP012-part2.zip 8.5.5-WS-WCT-FP012-part3.zip
jdk: 8.0.4.5-WS-IBMWASJAVA-Linux.zip

  1. 安装 im
    [websphere@centos151 im]$ unzip agent.installer.linux.gtk.x86_64_1.8.5000.20160506_1125.zip
    [websphere@centos151 im]$ ./userinstc -acceptLicense -installationDirectory /home/oracle/IBM/InstallationManager/eclipse -log /home/oracle/IBM/im.log

  2. 获取appserver版本号
    [websphere@centos151 nd]$ tar -xf WASV855_ND.tar.gz
    [websphere@centos151 WAS]$ cd /home/oracle/IBM/InstallationManager/eclipse/tools && ./imcl listAvailablePackages -repositories /home/oracle/soft/nd/WASV855_ND/WAS
    com.ibm.websphere.ND.v85_8.5.5000.20130514_1044

  3. 安装appserver
    cd /home/oracle/IBM/InstallationManager/eclipse/tools
    ./imcl install com.ibm.websphere.ND.v85_8.5.5000.20130514_1044
    -repositories /home/oracle/soft/nd/WASV855_ND/WAS/repository.config
    -installationDirectory /home/oracle/IBM/WebSphere/AppServer
    -sharedResourcesDirectory /home/oracle/IBM/IMShared
    -properties cic.selector.nl=zh
    -acceptLicense

  4. 创建管理概要文件
    ./manageprofiles.sh -create
    -profileName Dmgr01
    -profilePath /home/oracle/IBM/WebSphere/AppServer/profiles/Dmgr01
    -templatePath /home/oracle/IBM/WebSphere/AppServer/profileTemplates/dmgr/ -hostName centos151
    -enableAdminSecurity true -adminUserName wasadmin -adminPassword wasadmin

5.创建应用概要文件
./manageprofiles.sh -create -profileName AppSvr01
-profilePath /home/oracle/IBM/WebSphere/AppServer/profiles/AppSvr01/
-templatePath /home/oracle/IBM/WebSphere/AppServer/profileTemplates/default
-hostName centos151

6.启动管理控制
/home/oracle/IBM/WebSphere/AppServer/profiles/Dmgr01/bin/startManager.sh

7.添加应用概要到管理节点
cd /home/oracle/IBM/WebSphere/AppServer/profiles/AppSvr01/bin
[websphere@centos151 bin]$ ./addNode.sh centos151 8879 -username wasadmin -password wasadmin

  1. ihs机器安装im
    [websphere@centos141 im]$ pwd
    /home/websphere/soft/im
    [websphere@centos141 im]$ ./userinstc -acceptLicense -installationDirectory /home/websphere/IBM/InstallationManager/eclipse -log /home/websphere/IBM/im.log

  2. 显示可安装的ihs及plugins
    把WAS_V8.5.5_SUPPL_1_OF_3.zip WAS_V8.5.5_SUPPL_2_OF_3.zip WAS_V8.5.5_SUPPL_3_OF_3.zip 解压在: /home/websphere/soft
    [websphere@centos141 soft]$ cd /home/websphere/IBM/InstallationManager/eclipse/tools
    [websphere@centos141 tools]$ ./imcl listAvailablePackages -repositories /home/websphere/soft
    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

10.安装ihs: (centos141)
[websphere@centos141 soft]$ cd /home/websphere/IBM/InstallationManager/eclipse/tools
./imcl install com.ibm.websphere.IHS.v85_8.5.5000.20130514_1044
-repositories /home/websphere/soft/repository.config
-installationDirectory /home/websphere/ihs
-nl zh
-properties “user.ihs.httpPort=8080,user.ihs.allowNonRootSilentInstall=true,cic.selector.nl=zh”
-acceptLicense
-showVerboseProgress

11.安装IHS_Plugin (centos141)
./imcl install com.ibm.websphere.PLG.v85_8.5.5000.20130514_1044
-repositories /home/websphere/soft/repository.config
-installationDirectory /home/websphere/plugins
-nl zh
-acceptLicense
-showVerboseProgress

12.安装WCT (centos141)
./imcl install com.ibm.websphere.WCT.v85_8.5.5000.20130514_1044
-repositories /home/websphere/soft/repository.config
-installationDirectory /home/websphere/Toolbox
-nl zh
-acceptLicense
-showVerboseProgress

13.升级AppServer补丁 (centos151)
把 8.5.5-WS-WAS-FP012-part1.zip & 8.5.5-WS-WAS-FP012-part2.zip & 8.5.5-WS-WAS-FP012-part3.zip 解压到/home/software/was/FP012
./imcl updateAll
-repositories /home/software/was/FP012/repository.config
-installationDirectory /home/oracle/IBM/WebSphere/AppServer
-nl zh
-acceptLicense
-showVerboseProgress

14.升级wassdk补丁 (centos151)
把 8.0.4.5-WS-IBMWASJAVA-Linux.zip 解压到 /home/software/was/IBMWASJAVA
./imcl updateAll
-repositories /home/software/was/IBMWASJAVA/repository.config
-installationDirectory /home/oracle/IBM/WebSphere/AppServer
-nl zh
-acceptLicense
-showVerboseProgress

15.升级IHS补丁(centos141)
把 E:\software\was8.5.5nd\8.5.5-WS-WASSupplements-FP012-part1.zip 8.5.5-WS-WASSupplements-FP012-part2.zip 8.5.5-WS-WASSupplements-FP012-part3.zip
放到 /home/websphere/soft/suppl 并解压
cd /home/websphere/IBM/InstallationManager/eclipse/tools
./imcl updateAll
-repositories /home/websphere/soft/suppl/repository.config
-installationDirectory /home/websphere/ihs
-nl zh
-acceptLicense
-showVerboseProgress

16.升级IHS_Plugin补丁 (centos141)
cd /home/websphere/IBM/InstallationManager/eclipse/tools
./imcl updateAll
-repositories /home/websphere/soft/suppl/repository.config
-installationDirectory /home/websphere/plugins
-nl zh
-acceptLicense
-showVerboseProgress

17.升级ToolBox补丁 (centos141)
8.5.5-WS-WCT-FP012-part?.zip 放到 /home/websphere/soft/wct 并解压
./imcl updateAll
-repositories /home/websphere/soft/wct/repository.config
-installationDirectory /home/websphere/Toolbox
-nl zh
-acceptLicense
-showVerboseProgress

18.静默配置插件 (centos141)
vi /home/websphere/Toolbox/WCT/responsefile.txt
输入下面内容,当前环境 ihs跟appserver是分开的
configType=remote
enableAdminServerSupport=true
enableUserAndPass=true
enableWinService=false
ihsAdminCreateUserAndGroup=true
ihsAdminPassword=adminq23@
ihsAdminPort=8008
ihsAdminUnixUserGroup=websphere
ihsAdminUnixUserID=websphere
mapWebServerToApplications=true
wasMachineHostname=192.168.40.151
webServerConfigFile1=/home/websphere/ihs/conf/httpd.conf
webServerDefinition=webserver141
webServerHostName=192.168.40.141
webServerOS=Linux
ihsAdminUserID=admin
webServerPortNumber=8080
webServerInstallArch=64
webServerSelected=ihs

配置:
cd /home/websphere/Toolbox/WCT/
./wctcmd.sh -tool pct -defLocPathname /home/websphere/plugins -defLocName webserver141 -createDefinition -response /home/websphere/Toolbox/WCT/responsefile.txt

把141的 /home/websphere/plugins/bin/configurewebserver141.sh 拷贝到 151 的 /home/oracle/IBM/WebSphere/AppServer/profiles/AppSvr01/bin
[websphere@centos151 bin]$ chmod +x configurewebserver141.sh
生成webserver ./configurewebserver141.sh -profileName AppSvr01 -user wasadmin -password wasadmin
此时就可以在console看到配置的webserver–>webserver141
启动ihs的管理 [websphere@centos141 bin]$ /home/websphere/ihs/bin/adminctl start

参考:
https://docs.oracle.com/cd/E24902_01/doc.91/e23436/inst_config_was85_ibm.htm#EOHII229
https://www.ibm.com/support/pages/85512-websphere-application-server-v855-fix-pack-12
https://www.ibm.com/docs/en/was-nd/8.5.5?topic=iuwspidos-installing-web-server-plug-ins-using-command-line
https://www.ibm.com/docs/en/was-nd/8.5.5?topic=icwspi-configuring-web-server-plug-in-using-pct-tool
https://www.ibm.com/docs/zh/was/8.5.5?topic=SSEQTP_8.5.5/com.ibm.websphere.nd.multiplatform.doc/ae/tins_pctcl_using.html

「喜欢这篇文章,您的关注和赞赏是给作者最好的鼓励」
关注作者
【版权声明】本文为墨天轮用户原创内容,转载时必须标注文章的来源(墨天轮),文章链接,文章作者等基本信息,否则作者和墨天轮有权追究责任。如果您发现墨天轮中有涉嫌抄袭或者侵权的内容,欢迎发送邮件至:contact@modb.pro进行举报,并提供相关证据,一经查实,墨天轮将立刻删除相关内容。

评论