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

was静默安装

原创 逆风飞翔 2021-09-28
2509

 groupadd wasadmin
useradd -g wasadmin -G wasadmin wasadmin
passwd wasadmin
Seatrend0991


Was8.5静默安装完整步骤

1、安装包准备
Installation Manager安装包:agent.installer.linux.gtk.x86_64_1.7.4000.20150304_1934.zip
WAS_ND安装包:
WAS_ND_V8.5_1_OF_3.zip
WAS_ND_V8.5.5_2_OF_3.zip
WAS_ND_V8.5.5_3_OF_3.zip

2、目录结构:
Installation Manager安装包位置: /opt/was8.5/agent
WAS_ND安装包位置: /opt/IBM/WAS_ND_V8.5.5
在上面两个路径下执行各自的解压命令

unzip -n agent.installer.linux.gtk.x86_64_1.7.4000.20150304_1934.zip
unzip -n WAS_ND_V8.5_1_OF_3.zip

Installation Manager安装位置: /opt/IBM/eclipse/
WAS_ND安装位置: /opt/IBM/WebSphere/AppServer
注:WAS_ND三个安装包解压在同一个目录下

3、Installation Manager静默安装

cd /opt/was8.5/agent
./installc -installationDirectory /opt/IBM/eclipse -acceptLicense

备注:
-installationDirectory <安装目录>
installc 表示使用root用户静默安装

4、WAS8.5 静默安装

4.1、得到小版本号

cd /opt/IBM/InstallationManager/eclipse/tools
/opt/IBM/InstallationManager/eclipse/tools/imcl listAvailablePackages -repositories /opt/IBM/WAS_ND_V8.5.5/repository.config
com.ibm.websphere.ND.v85_8.5.5000.20130514_1044
4.2、修改repository.config文件

cd /opt/IBM/WAS_ND_V8.5.5
vi /opt/IBM/WAS_ND_V8.5.5/repository.config

LayoutPolicy=Composite
LayoutPolicyVersion=0.0.0.1

repository.url.disk1=./disk1
repository.url.disk2=./disk2
repository.url.disk3=./disk3

-OPT silentInstallLicenseAcceptance="true"
-OPT allowNonRootSilentInstall="true"
-OPT disableOSPrereqChecking="true"
-OPT installType="installNew"
-OPT feature="noFeature"
-OPT installLocation="/opt/IBM/WebSphere/AppServer"
-OPT profileType="none"
-OPT PROF_enableAdminSecurity="false"

配置内容从上到下依次为:接受License、允许非root用户安装、取消对系统的检测、 全新安装、 不安装示例、安装路径、不生成概要、不设置管理员安全。
注:WebSphere通常都是需要设置管理员安全的,不过在这里设置true亲测并没有生效,因此后续在Web控制台上图形化设置。

4.3、执行安装was命令

cd /opt/IBM/InstallationManager/eclipse/tools
./imcl install com.ibm.websphere.ND.v85_8.5.5000.20130514_1044 \
-repositories /opt/IBM/WAS_ND_V8.5.5/repository.config \
-installationDirectory /opt/IBM/WebSphere/AppServer \
-sharedResourcesDirectory /opt/IBM/IBMhared \
-nl zh \
-properties cic.selector.nl=zh \
-acceptLicense \
-showVerboseProgress

注:这里的安装代码在命令行中是写在一行的,这里分行只是为了方便阅读,每行前面的-不能省略。
-install 小版本号
-repositories 使用的存储库

4.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 jyjgdlserver ---主服务器的主机名

【命令创建概要文件】:以下案例是在同一台主机上创建dmgr和node.
创建Dmgr01:
方式一(不设置端口):
/opt/IBM/WebSphere/AppServer/bin/manageprofiles.sh \
-create \
-templatePath /opt/IBM/WebSphere/AppServer/profileTemplates/dmgr \
-hostName jyjgdlserver \
-profileName Dmgr01 \
-profilePath /opt/IBM/WebSphere/AppServer/profiles/Dmgr01 \
-cellName wasCell01 \
-nodeName wasCellManager01 \
-enableAdminSecurity true \
-adminUserName wasadmin \
-adminPassword Seatrend0991

注:如果想搭建多主机的Was集群,不设置hostname会导致若干问题。

4.5、创建应用概要

./manageprofiles.sh -delete -profileName AppSrv01
----154
cd /opt/IBM/WebSphere/AppServer/bin
./manageprofiles.sh -create \
-profileName AppSrv01 \
-profilePath /opt/IBM/WebSphere/AppServer/profiles/AppSrv01 \
-templatePath /opt/IBM/WebSphere/AppServer/profileTemplates/default \
-hostName jyjg-pro154 \
-enableAdminSecurity true \
-adminUserName wasadmin -adminPassword Seatrend0991

-----18
cd /opt/IBM/WebSphere/AppServer/bin
./manageprofiles.sh -create \
-profileName AppSrv01 \
-profilePath /opt/IBM/WebSphere/AppServer/profiles/AppSrv01 \
-templatePath /opt/IBM/WebSphere/AppServer/profileTemplates/default \
-hostName jyjgdlserver \
-enableAdminSecurity true \
-adminUserName wasadmin -adminPassword Seatrend0991
创建AppSrv01:
方式一(不设置端口):
联合Dmgr:
/opt/IBM/WebSphere/AppServer/bin/manageprofiles.sh \
-create \
-templatePath /opt/IBM/WebSphere/AppServer/profileTemplates/managed \
-hostName jyjgdlserver \
-profileName AppSrv01 \
-profilePath /opt/IBM/WebSphere/AppServer/profiles/AppSrv01 \
-cellName wasCell02 \
-nodeName wasNode01 \
-dmgrHost 104.1.15.18 \
-dmgrPort 8879 \
-dmgrAdminUserName wasadmin \
-dmgrAdminPassword Seatrend0991 \
-isDefault

./manageprofiles.sh -delete -profileName AppSrv01
不联合Dmgr:
/opt/IBM/WebSphere/AppServer/bin/manageprofiles.sh \
-create \
-templatePath /opt/IBM/WebSphere/AppServer/profileTemplates/managed \
-hostName jyjg-pro154 \
-profileName AppSrv01 \
-profilePath /opt/IBM/WebSphere/AppServer/profiles/AppSrv01 \
-enableAdminSecurity true \
-adminUserName wasadmin \
-adminPassword Seatrend0991 \
-isDefault


-cellName wasCell01 \
-nodeName wasNode01 \
然后通过addNode命令添加节点到dmgr:
/opt/IBM/WebSphere/AppServer/profiles/AppSrv01/bin/addNode.sh 104.1.15.18 8879 -username wasadmin -password Seatrend0991

#-nodeName jyjgdlserver \
#-serverName jyjgdlserver
----启动服务
/opt/IBM/WebSphere/AppServer/profiles/AppSrv01/bin/startServer.sh server1

注:在主服务器(管理服务器)上新建的应用概要也显示填上主服务器的主机名。从服务器(应用节点服务器)不需要创建管理概要,但在创建应用概要的时候hostname也要显示指定。

4.6、启动Web管理控制台


/opt/IBM/WebSphere/AppServer/profiles/Dmgr01/bin/stopManager.sh -username wasadmin -password Seatrend0991
/opt/IBM/WebSphere/AppServer/profiles/AppSrv01/bin/stopServer.sh nodeagent -username wasadmin -password Seatrend0991
/opt/IBM/WebSphere/AppServer/profiles/AppSrv01/bin/stopServer.sh server1 -username wasadmin -password Seatrend0991
-----104.1.15.18
/opt/IBM/WebSphere/AppServer/profiles/Dmgr01/bin/startManager.sh
/opt/IBM/WebSphere/AppServer/profiles/AppSrv01/bin/startServer.sh nodeagent
/opt/IBM/WebSphere/AppServer/profiles/AppSrv01/bin/startServer.sh server1

在主服务器上执行。需要关闭防火墙:chkconfig iptables off
Web管理端地址:httpS://104.1.15.18:9043/ibm/console
https://10.20.40.154:9060/ibm/console

-----升级WAS补丁:
cd /opt/IBM/InstallationManager/eclipse/tools

./imcl updateAll \
-repositories /opt/IBM/waspatch/WS-WAS-FP014/repository.config \
-installationDirectory /opt/IBM/WebSphere/AppServer \
-nl zh \
-acceptLicense \
-showVerboseProgress


5.2、如何删除概要文件

1)在删除前一定要确认将WAS服务停止,可以使用 ps -ef|grep was 命令来确认服务是否关闭。

2)确定profiles的名称。在WAS_HOME\bin 目录下输入命令 ./manageprofiles.sh -listProfiles

3)删除节点对应的概要文件 ./manageprofiles.sh -delete -profileName Dmgr01
./manageprofiles.sh -delete -profileName AppSrv01

4)删除文件目录

cd /opt/IBM/WebSphere/AppServer/profiles
rm -rf AppSrv01

4.7、添加应用概要到管理节点

/opt/IBM/WebSphere/AppServer/profiles/AppSrv01/bin/addNode.sh jyjgdlserver 8879 -username wasadmin -password Seatrend0991
然后通过addNode命令添加节点到dmgr:
/opt/IBM/WebSphere/AppServer/profiles/AppSrv01/bin/addNode.sh 104.1.15.18 8879 -username wasadmin -password Seatrend0991
1
注:端口号为WebSphereDeployment Manager对应的端口,默认8879。要加哪个节点就在哪个bin目录下执行。在将从服务器的添加应用概要添加到管理节点的时候,必须保证主服务器的防火墙是关闭的。
./addNode.sh <dmgr_hostname> <dmgr_SOAP_port> -includeapps –localusername <app_user> -localpassword <app_password> -username <dmgr_user> -password <dmgr_password>

在Linux和UNIX下,输入
./stopNode.sh –username <user_name> -password <password>


如果你不清楚部署管理器的 SOAP 端口号,你可以登陆部署管理器的管理控制台,打开 System Administration>Deployment Manager>Ports,然后查看SOAP_CONNECTOR_ADDRESS的值。这个值就是 SOAP 的端口号。
注意,因为部署管理器和应用程序服务器都有安全认证,所以你需要在命令行中输入这两项信息。否则,系统会提示你输入管理员名称与密码。
另外,你在 addNode 命令中设置了 –includeapps 选项。默认情况下,原来安装在应用程序服务器上的应用程序在联合到单元之后并不会安装在单元里面。设置了 –includeapps 选项会使现在已经安装在应用程序服务器上的程序在联合之后仍然可用。

4.8、启动Node节点

/opt/IBM/WebSphere/AppServer/profiles/AppSrv01/bin/startNode.sh

要启动哪个节点就在哪个bin目录下执行。

注:节点的四种状态
已同步:此节点上的配置文件已与 Deployment Manager 同步
未同步:此节点上的配置文件未与 Deployment Manager 同步(已过期)
未知:由于无法访问此节点的 Node Agent, 所以无法确定配置文件的状态
不可用:由于此节点是非受管节点, 所以状态列不适用于此节点

4.9、启动Node节点下的Server

/opt/IBM/WebSphere/AppServer/profiles/AppSrv01/bin/startServer.sh jyjgdlserver
/opt/IBM/WebSphere/AppServer/profiles/AppSrv01/bin/stopServer.sh jyjgdlserver

4.10、在从服务器重复上述步骤
不同的是在从服务器上无需创建管理概要。即两台Linux服务器,主服务器安装Dmgr和Appsrv,从服务器上只需安装Appsrv。在组成集群的过程中,几台服务器的hostname不能相同。安装完成后,在管理服务器下的/opt/IBM/WebServer/AppServer/profiles目录下可以看到DMGR01,APPSRV01两个目录。其中DMGR01是管理台概要文件。在应用节点服务器下的/opt/IBM/WebServer/AppServer/profiles目录下能看到APPSRV01一个目录。

注:集群的IP地址,是集群中所有的节点对外呈现的一个共同的IP地址,常默认为管理服务器的ip 。

4.11、修改hosts文件
详见博客里的另一篇文章
https://blog.csdn.net/weixin_38645718/article/details/83147248

5、WAS其他操作

5.1、如何重启Was

首先停止server,再停止Node,最后停止dmgr 。 接着启动dmgr ,再启动Node,最后启动server 。 启动server后,服务状态变为start。启动node后,节点状态变为同步。

注1:将集群上的节点全部启动起来之后,cluster的状态就会由partial start 变为 start 。

注2:如果设置管理控制台的密码,在关闭server、node的时候需要输入用户名、密码,在开启的时候不需要输入。




4.安装补丁:版本为was8.5.5.3

/opt/IBM/InstallationManager/eclipse/tools/imcl listAvailablePackages -repositories /opt/IBM/waspatch/WS-WAS-FP014

/opt/IBM/InstallationManager/eclipse/tools/imcl install com.ibm.websphere.NDDMZ.v85_8.5.5014.20180802_1018 \
-repositories /opt/IBM/waspatch/WS-WAS-FP014/repository.config \
-installationDirectory /opt/IBM/WebSphere/AppServer \
-sharedResourcesDirectory /opt/IBM/IBMhared \
-nl zh \
-properties cic.selector.nl=zh -acceptLicense -showVerboseProgress


5.结果显示:
/opt/IBM/WebSphere/AppServer/java 目录中的 Java SE 版本已更新为 Java SE 8。
发现配置为与 Java SE 6 配合运行的服务器概要文件。进行修订包更新后,这些概要文件已自动重新配置为与 Java SE 8 配合运行。
如果这些服务器概要文件是受管应用程序服务器节点,那么您必须运行以下命令来手动更新此节点的 Deployment Manager 管理器视图:
syncNode.sh <dmgr_hostname> <dmgr_port>


--删除概要文件:
/opt/IBM/WebSphere/AppServer/bin/manageprofiles.sh -listProfiles
/opt/IBM/WebSphere/AppServer/bin/manageprofiles.sh -delete -profileName Dmgr01
/opt/IBM/WebSphere/AppServer/bin/manageprofiles.sh -delete -profileName AppSrv01

cd /opt/IBM/WebSphere/AppServer/profiles
rm -rf AppSrv01
rm -rf Dmgr01


【卸载WAS】:

cd /opt/IBM/InstallationManager/eclipse/tools
./imcl listAvailablePackages -repositories /opt/IBM/WAS_ND_V8.5.5/repository.config

cd /opt/IBM/InstallationManager/eclipse/tools
./imcl uninstall com.ibm.websphere.ND.v85_8.5.5014.20180802_1018 #安装补丁后
./imcl uninstall com.ibm.websphere.ND.v85_8.5.5000.20130514_1044

-----升级WAS补丁:
cd /opt/IBM/InstallationManager/eclipse/tools

./imcl updateAll \
-repositories /opt/IBM/waspatch/WS-WAS-FP014/repository.config \
-installationDirectory /opt/IBM/WebSphere/AppServer \
-nl zh \
-acceptLicense \
-showVerboseProgress

警告:
WAS_HOME/java 目录中的 Java SE 版本已更新为 Java SE 8。
发现配置为与 Java SE 6 配合运行的服务器概要文件。进行修订包更新后,这些概要文件已自动重新配置为与 Java SE 8 配合运行。
如果这些服务器概要文件是受管应用程序服务器节点,那么您必须运行以下命令来手动更新此节点的 Deployment Manager 管理器视图:
syncNode.sh <dmgr_hostname> <dmgr_port>

4.安装补丁:版本为was8.5.5.3
3.显示was安装源处,可以提供的repo
/opt/IBM/InstallationManager/eclipse/tools/imcl listAvailablePackages -repositories /opt/IBM/waspatch/WS-WAS-FP014

/opt/IBM/InstallationManager/eclipse/tools/imcl install com.ibm.websphere.NDDMZ.v85_8.5.5014.20180802_1018 \
-repositories /opt/IBM/waspatch/WS-WAS-FP014/repository.config \
-installationDirectory /opt/IBM/WebSphere/AppServer \
-sharedResourcesDirectory /opt/IBM/IBMhared \
-nl zh \
-properties cic.selector.nl=zh -acceptLicense -showVerboseProgress


WAS 8.5.5 静默安装补丁升级
目录结构:
InstallManager安装源位置: /opt/was8.5.5/agent
WAS8.5 安装源位置: /opt/IBM/WAS_ND_V8.5.5
WAS8.5.5002补丁包源位置:/opt/was8.5.5/wasupdate
InstallManager安装的位置: /opt/IBM/eclipse/
WAS8.5 安装的位置: /opt/IBM/WebSphere/AppServer
2.解压agent

unzip agent.installer.linux.gtk.x86_64_1.6.0.20120831_1216.zip

3.安装IBM

mkdir -p /opt/IBM/eclipse
/opt/was8.5.5/agent/userinstc -installationDirectory /opt/IBM/eclipse -acceptLicense

这里写图片描述
4.解压缩 WAS安装源的压缩包
WAS_ND_V8.5.5_1_OF_3.zip
WAS_ND_V8.5.5_2_OF_3.zip
WAS_ND_V8.5.5_3_OF_3.zip
命令:

unzip WAS_ND_V8.5.5_\?_OF_3.zip
1
获取小版本号
/opt/IBM/eclipse/tools/imcl listAvailablePackages -repositories /opt/IBM/WAS_ND_V8.5.5
结果如下:
这里写图片描述
6.开始安装WAS8.5
安装命令:

/opt/IBM/eclipse/tools/imcl install \ com.ibm.websphere.ND.v85_8.5.5000.20130514_1044 \
-repositories /opt/IBM/WAS_ND_V8.5.5/repository.config \
-installationDirectory /opt/IBM/WebSphere/AppServer \
-sharedResourcesDirectory /opt/IBM/IBMhared \
-properties cic.selector.nl=zh \
-acceptLicense

这里写图片描述
注解:

./imcl help install
1
安装软件包或特定功能部件。
-connectPassportAdvantage
将 PassportAdvantage 存储库附加到存储库列表。
-eclipseLocation <targetEclipseDirectory>
目标 Eclipse 目录。
-installFixes [none|recommended|all]
安装修订。
-installationDirectory <安装目录>
指定安装目录。
-masterPasswordFile <masterPasswordFilePath>
定义主密码文件
-preferences <key>=<value>(,<key2>=<value2>...)
指定要使用的首选项值或首选项值的逗号分隔列表。
-properties <key1>=<val1>(,<key2=val2>,...)
软件包安装所需的属性。
-reinstallIM
重新安装 Installation Manager
-repositories <repository>(,<repository2>...)
指定要使用的存储库。
-secureStorageFile <secureStorageFilePath>
定义安全存储文件
-sharedResourcesDirectory <sharedResourcesDirectory>
共享资源目录。
-useServiceRepository
指定搜索服务存储库。

7.创建管理概要文件

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/

8.创建应用概要文件

./manageprofiles.sh -create -profileName AppSrv01 -profilePath /opt/IBM/WebSphere/AppServer/profiles/AppSrv01/ -templatePath /opt/IBM/WebSphere/AppServer/profileTemplates/default -hostName 127.0.0.1
1
这里写图片描述
注释:
如果概要文件需要在不同的机器上运行,设置 -hostName 为IP地址,默认为主机名,都为本机信息, 也可以自定义 -nodeName 、-cellName 值,集群时要定义好,以免冲突

9.启动管理控制

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

这里写图片描述

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

/opt/IBM/WebSphere/AppServer/profiles/AppSrv01/bin/addNode.sh 127.0.0.1 8879 -username websphere -password websphere

要加哪个节点在相应的bin目录下执行,ip为管理节点地址,本机为127.0.0.1
要确定关闭防火墙
这里写图片描述

11.创建受管制节点

./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

注释:
-hostName 为IP地址,默认为主机名,都为本机信息, 也可以自定义 -nodeName 、-cellName 值,集群时要定义好,以免冲突

12.将受管制节点添加到管理节点下

./addNode.sh 192.168.10.144 8879
1
13.静默安装WAS补丁包

到WAS补丁包存放目录下,将补丁包解压:

cd /opt/was8.5.5/wasupdate
unzip 8.5.5-WS-WAS-FP0000002-part\?.zip
1
2
安装WAS补丁包
1
/opt/IBM/eclipse/tools/
1
./imcl updateAll -repositories /opt/was8.5.5/wasupdate/repository.config -installationDirectory /opt/IBM/WebSphere/AppServer_1 -acceptLicense
1
这里写图片描述
补丁安装完成,查看版本

cd /opt/IBM/WebSphere/AppServer/bin/
1
./versionInfo.sh
1
这里写图片描述

14.静默卸载WAS

./imcl uninstall com.ibm.websphere.ND.v85_8.5.5000.20130514_1044 -installationDirectory /opt/IBM/WebSphere/AppS




WebSphere V8.5 静默安装升级(一)-独立安装每个安装包

ICANPlus 2017-08-14 17:24:51 3524 收藏 1
分类专栏: WebSphere 文章标签: websphere 实施部署
版权
声明:WAS8.5默认安装JDK 1.6.1,WAS8.5.5.9开始支持了JDK 1.8。
【解压介质】
WAS安装包:
WAS_ND_V8.5.5_1_OF_3.zip
WAS_ND_V8.5.5_2_OF_3.zip
WAS_ND_V8.5.5_3_OF_3.zip
zip文件,用以下命令一次性解压缩:

unzip WAS_ND_V8.5.5_\?_OF_3.zip -d WAS_ND_V8.5.5
1
【删除zip文件】

rm -f WAS_ND_V8.5.5_?_OF_3.zip
1
【IHS,Plugin安装包 】
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

unzip WAS_V8.5.5_SUPPL_\?_OF_3.zip -d WAS_V8.5.5_SUPPL
1
【删除zip文件】

rm -f WAS_V8.5.5_SUPPL_?_OF_3.zip
1
【WAS补丁】
cd /mnt/hgfs/IBM/WAS_8.5.5.11
8.5.5-WS-WAS-FP011-part1.zip
8.5.5-WS-WAS-FP011-part2.zip
8.5.5-WS-WAS-FP011-part3.zip

unzip 8.5.5-WS-WAS-FP011-part\?.zip -d 8.5.5-WS-WAS-FP011
1
【删除zip文件】

rm -f 8.5.5-WS-WAS-FP0000007-part?.zip
1
【IHS、Plugin补丁】
8.5.5-WS-WASSupplements-FP011-part1.zip
8.5.5-WS-WASSupplements-FP011-part1.zip
8.5.5-WS-WASSupplements-FP011-part1.zip

unzip 8.5.5-WS-WASSupplements-FP011-part\?.zip -d 8.5.5-WS-WASSupplements-FP011

【删除zip文件】

rm -f 8.5.5-WS-WASSupplements-FP011-part?.zip

【Toolbox补丁】
8.5.5-WS-WCT-FP011-part1.zip
8.5.5-WS-WCT-FP011-part2.zip
8.5.5-WS-WCT-FP011-part3.zip

unzip 8.5.5-WS-WCT-FP011-part\?.zip -d 8.5.5-WS-WCT-FP011

【删除zip文件】

rm -f 8.5.5-WS-WCT-FP011-part?.zip

【WASSDK补丁】
8.5.0.0-WS-WASJavaSDK-LinuxX64-IFPI76779.zip

unzip 8.5.0.0-WS-WASJavaSDK-LinuxX64-IFPI76779.zip -d 8.5.0.0-WS-WASJavaSDK-LinuxX64-IFPI76779

【静默安装IM】
切换至安装包解压目录:

cd /mnt/hgfs/IBM/pu.offering.disk.linux.gtk.x86_64_1.8.6001.20170428_1224/disk_linux.gtk.x86_64/InstallerImage_linux.gtk.x86_64/

【执行静默安装命令】

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

【静默安装 WAS】
挂载 WAS仓库文件:

cd /opt/IBM/InstallationManager/eclipse/tools
./imcl listAvailablePackages -repositories /mnt/hgfs/IBM/WAS_8.5.5

挂载后会显示以下内容:
com.ibm.websphere.ND.v85_8.5.5000.20130514_1044
执行安装命令:
方式一:以下命令经测试未选择安装中文语言

cd /opt/IBM/InstallationManager/eclipse/tools

./imcl install com.ibm.websphere.ND.v85_8.5.5000.20130514_1044 \
-repositories /mnt/hgfs/IBM/WAS_8.5.5/repository.config \
-installationDirectory /opt/IBM/WebSphere/AppServer \
-sharedResourcesDirectory /opt/IBM/IBMhared \
-nl zh \
-acceptLicense \
-showVerboseProgress

方式二:安装过程指定使用中文(-nl zh),WAS添加中文语言包(-properties cic.selector.nl=zh)

cd /opt/IBM/InstallationManager/eclipse/tools

./imcl install com.ibm.websphere.ND.v85_8.5.5000.20130514_1044 \
-repositories /mnt/hgfs/IBM/WAS_8.5.5/repository.config \
-installationDirectory /opt/IBM/WebSphere/AppServer \
-sharedResourcesDirectory /opt/IBM/IBMhared \
-nl zh \
-properties cic.selector.nl=zh \
-acceptLicense \
-showVerboseProgress

【卸载WAS】

cd /opt/IBM/InstallationManager/eclipse/tools
./imcl uninstall com.ibm.websphere.ND.v85_8.5.5000.20130514_1044

【静默安装IHS】
挂载IHS等安装包仓库文件:

cd /opt/IBM/InstallationManager/eclipse/tools
./imcl listAvailablePackages -repositories /mnt/hgfs/IBM/IHS_8.5.5
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

执行安装命令:

cd /opt/IBM/InstallationManager/eclipse/tools

./imcl install com.ibm.websphere.IHS.v85_8.5.5000.20130514_1044 \
-repositories /mnt/hgfs/IBM/IHS_8.5.5/repository.config \
-installationDirectory /opt/IBM/HTTPServer \
-nl zh \
-properties "user.ihs.httpPort=8080,user.ihs.allowNonRootSilentInstall=true,cic.selector.nl=zh" \
-acceptLicense \
-showVerboseProgress

【卸载IHS】

cd /opt/IBM/InstallationManager/eclipse/tools
./imcl uninstall com.ibm.websphere.IHS.v85_8.5.5000.20130514_1044

【静默安装IHS_Plugin】
Plugin安装包仓库文件已经在挂载IHS安装包时挂载,所有执行以下安装命令即可:

cd /opt/IBM/InstallationManager/eclipse/tools

./imcl install com.ibm.websphere.PLG.v85_8.5.5000.20130514_1044 \
-repositories /mnt/hgfs/IBM/IHS_8.5.5/repository.config \
-installationDirectory /opt/IBM/WebSphere/Plugins \
-nl zh \
-acceptLicense \
-showVerboseProgress

【静默安装WCT】
ToolBox安装包仓库文件已经在挂载IHS安装包时挂载,所有执行以下安装命令即可:

cd /opt/IBM/InstallationManager/eclipse/tools

./imcl install com.ibm.websphere.WCT.v85_8.5.5000.20130514_1044 \
-repositories /mnt/hgfs/IBM/IHS_8.5.5/repository.config \
-installationDirectory /opt/IBM/WebSphere/Toolbox \
-nl zh \
-acceptLicense \
-showVerboseProgress

安装过程结束。

【静默安装补丁】
挂载补丁:

cd /opt/IBM/InstallationManager/eclipse/tools

./imcl listAvailablePackages -repositories /mnt/hgfs/IBM/WAS_8.5.5.11/8.5.5-WS-WAS-FP011
./imcl listAvailablePackages -repositories /mnt/hgfs/IBM/WAS_8.5.5.11/8.5.5-WS-WASSupplements-FP011
./imcl listAvailablePackages -repositories /mnt/hgfs/IBM/WAS_8.5.5.11/8.5.5-WS-WCT-FP011
./imcl listAvailablePackages -repositories /mnt/hgfs/IBM/WAS_8.5.5.11/8.5.0.0-WS-WASJavaSDK-LinuxX64-IFPI76779

【升级WAS补丁】

cd /opt/IBM/InstallationManager/eclipse/tools

./imcl updateAll \
-repositories /mnt/hgfs/IBM/WAS_8.5.5.11/8.5.5-WS-WAS-FP011/repository.config \
-installationDirectory /opt/IBM/WebSphere/AppServer \
-nl zh \
-acceptLicense \
-showVerboseProgress

【升级WASSDK补丁】

./imcl updateAll \
-repositories /mnt/hgfs/IBM/WAS_8.5.5.11/8.5.0.0-WS-WASJavaSDK-LinuxX64-IFPI76779/repository.config \
-installationDirectory /opt/IBM/WebSphere/AppServer \
-nl zh \
-acceptLicense \
-showVerboseProgress

【升级IHS补丁】

cd /opt/IBM/InstallationManager/eclipse/tools

./imcl updateAll \
-repositories /mnt/hgfs/IBM/WAS_8.5.5.11/8.5.5-WS-WASSupplements-FP011/repository.config \
-installationDirectory /opt/IBM/HTTPServer \
-nl zh \
-acceptLicense \
-showVerboseProgress

【升级WASSDK补丁】

./imcl updateAll \
-repositories /mnt/hgfs/IBM/WAS_8.5.5.11/8.5.0.0-WS-WASJavaSDK-LinuxX64-IFPI76779/repository.config \
-installationDirectory /opt/IBM/HTTPServer \
-nl zh \
-acceptLicense \
-showVerboseProgress

【升级IHS_Plugin补丁】

cd /opt/IBM/InstallationManager/eclipse/tools

./imcl updateAll \
-repositories /mnt/hgfs/IBM/WAS_8.5.5.11/8.5.5-WS-WASSupplements-FP011/repository.config \
-installationDirectory /opt/IBM/WebSphere/Plugins \
-nl zh \
-acceptLicense \
-showVerboseProgress

【升级WASSDK补丁】

./imcl updateAll \
-repositories /mnt/hgfs/IBM/WAS_8.5.5.11/8.5.0.0-WS-WASJavaSDK-LinuxX64-IFPI76779/repository.config \
-installationDirectory /opt/IBM/WebSphere/Plugins \
-nl zh \
-acceptLicense \
-showVerboseProgress

【升级ToolBox补丁】

cd /opt/IBM/InstallationManager/eclipse/tools

./imcl updateAll \
-repositories /mnt/hgfs/IBM/WAS_8.5.5.11/8.5.5-WS-WCT-FP011/repository.config \
-installationDirectory /opt/IBM/WebSphere/Toolbox \
-nl zh \
-acceptLicense \
-showVerboseProgress

【升级WASSDK补丁】

./imcl updateAll \
-repositories /mnt/hgfs/IBM/WAS_8.5.5.11/8.5.0.0-WS-WASJavaSDK-LinuxX64-IFPI76779/repository.config \
-installationDirectory /opt/IBM/WebSphere/Toolbox \
-nl zh \
-acceptLicense \
-showVerboseProgress

升级补丁过程结束。

问题一:登录WAS管理控制台后如何才能显示中文界面
如果没添加中文,添加中文的方式:

1. vnc远程到服务器
2. /opt/IBM/InstallationManager/eclipse/launcher
3. 点击modify
4. 然后选择IBM WebSphere Application Server V8.5,然后下一步 并输入账号密码。
5. 然后选择简体中文 一路下一步即可

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

评论