WAS8.5静默安装

来源:互联网 发布:java支付接口开发demo 编辑:程序博客网 时间:2024/05/17 08:07

安装was8.5和补丁,was8.5缺省安装包内置的JDK是1.6的版本,我们选择安装jdk1.7
------------------------------------------------------------------
系统版本:Red Hat Enterprise Linux Server release 5.8
软件版本:was8.5
------------------------------------------------------------------
新建用户,使用非root用户安装:
[root@was02 ~]# useradd wasadmin
[root@was02 ~]# passwd wasadmin
[root@was02 ~]# chown -R wasadmin.wasadmin /opt
[root@was02 ~]# su - wasadmin
将IIM安装包,was8.5的安装包,IHS和补丁包,JDK1.7安装包分别上传到/opt/IIM和WAS(新建)目录下:
[wasadmin@was02 opt]$ mkdir -p {IIM,IHS,JDK1.7,WAS/pak/{was8,ihs}}
------------------------------------------------------------------------------------------------------------

[wasadmin@was02 IIM]$ ./userinstc -installationDirectory /was/InstallationManager/eclipse -acceptLicense
[wasadmin@was02 IIM]$ cd /was/InstallationManager/eclipse/tools
我们需要使用imcl命令进行安装:
[wasadmin@was02 IIM]$ cd tools
首先查看一下帮助选项:
[wasadmin@was02 tools]$ ./imcl -help
建议使用 Installation Manager 的已安装实例中的 imcl。请参阅 Installation Manager 信息中心,以获取更多信息。

help, -help, -h, -?  (all, <command>)
    打印关于可用命令的简短信息并退出。
import
    添加已使用除 Installation Manager 外的其他安装工具安装的现有软件包。
input, -input  <脚本文件>
    执行 Installation Manager 脚本文件。
install  <packageId(_Version)(,featureN,featureM,...)>...
    安装软件包或特定功能部件。
listAvailableFixes  <标识>_<版本>
    列出关于可用修订的信息。
listAvailablePackages
    列出关于可用软件包的信息。
listInstallationDirectories
    列出有关安装目录、共享资源目录、软件包组名称和已安装的翻译版本的信息。
listInstalledFeatures  <标识>_<版本>
    指定一个软件包以列出已安装的功能部件。
listInstalledPackages
    列出关于当前在系统上安装的软件包的相关信息。
modify  <packageID(_Version)>
    更改已安装的软件包。可向软件包添加功能部件或从中除去功能部件。
rollback  <packageID(_Version)>...
    回滚。
uninstall  <packageId(_Version)(,featureN,featureM,...)>...
    卸载软件包或特定功能部件。
uninstallAll
    静默卸载所有安装的软件包。
updateAll, -updateAll
    更新所有已安装软件包。
version, -version
    打印该应用程序的版本并退出。
viewLog  (日志文件)
    显示日志文件列表。
-acceptLicense
    表示接受许可协议。
-accessRights, -aR  <访问权>
    将用户定义为管理员、非管理员或组。缺省值为 admin。此设置将忽略系统状态。
-consoleMode, -c
    以控制台方式运行 Installation Manager。
-dataLocation, -dL  <data-location>
    指定要保留内部 Installation Manager 数据的目录。
-log, -l  <日志文件>
    指定用于记录 Installation Manager 操作结果的日志文件。日志文件是 XML 文件。
-masterPasswordFile  <masterPasswordFilePath>
    定义主密码文件
-nl  <nl>
    指定需要使用的语言。
-passwordKey, -pK  (<passwordKey>)
    以 UI 或静默方式提供密码加密密钥。
-preferences  <key>=<value>(,<key2>=<value2>...)
    指定要使用的首选项值或首选项值的逗号分隔列表。
-record  <recordedFile>
    记录的响应文件。
-secureStorageFile  <secureStorageFilePath>
    定义安全存储文件
-showProgress, -sP
    显示进度。
-showVerboseProgress, -sVP
    显示详细进度。
-silent, -s
    以静默方式运行 Installation Manager。
-stopBlockingProcesses
    停止阻碍进程。
---------------------------------------------------------------------------------------------------------
通过help命令了解安装参数:
[wasadmin@was02 tools]$ ./imcl help install
建议使用 Installation Manager 的已安装实例中的 imcl。请参阅 Installation Manager 信息中心,以获取更多信息。

install  <packageId(_Version)(,featureN,featureM,...)>...
    安装软件包或特定功能部件。
    <packageId(_Version)(,featureN,featureM,...)>...
            要安装的软件包标识,还可带有版本和功能部件列表。
    -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
        指定搜索服务存储库。

该命令指示 Installation Manager 安装软件包。软件包由某个软件包标识来指定。(可选)可向软件包标识添加带版本的下划线,并可添加以逗号分隔的功能部件列表。

该命令无法与以下命令合并:
input, -input  <脚本文件>
updateAll, -updateAll
uninstall  <packageId(_Version)(,featureN,featureM,...)>...
uninstallAll
import
modify  <packageID(_Version)>
rollback  <packageID(_Version)>...

示例:
install com.ibm.some.package com.ibm.some.package.id_1.0,featureN,featureM

--------------------------------------------------------------------------------------------
获取软件包标识,下面安装需要用到此参数:
[wasadmin@was02 tools]$ ./imcl listAvailablePackages -repositories /opt/WAS/
com.ibm.websphere.ND.v85_8.5.5000.20130514_1044
然后开始安装:
[wasadmin@was02 tools]$ ./imcl help install
[wasadmin@was02 tools]$ ./imcl install com.ibm.websphere.ND.v85_8.5.5000.20130514_1044 \
-repositories /opt/WAS/repository.config \
-installationDirectory /opt/IBM/WebSphere/AppServer \
-sharedResourcesDirectory /opt/IBM/IMShared \
-properties cic.selector.nl=zh \
-acceptLicense \
-showVerboseProgress
可以查看屏幕详细输出信息,此处省略
已将 com.ibm.websphere.ND.v85_8.5.5000.20130514_1044 安装到 /opt/IBM/WebSphere/AppServer 目录。
-------------------------
安装was8.5补丁包:
[wasadmin@was02 tools]$ ./imcl updateAll \
-repositories /opt/WAS/pak/was8/repository.config \
-installationDirectory /opt/IBM/WebSphere/AppServer/ \
-acceptLicense \
-showVerboseProgress
可以查看屏幕详细输出信息,此处省略
安装成功后,查看was版本是否为8.5.5.2:
[wasadmin@was02 tools]$ cd /opt/IBM/WebSphere/AppServer/bin/
[wasadmin@was02 bin]$ ./versionInfo.sh
WVER0010I: Copyright (c) IBM Corporation 2002, 2012; All rights reserved.
WVER0012I: VersionInfo reporter V1.15.1.48,日期:2/8/12

--------------------------------------------------------------------------------
IBM WebSphere 产品安装状态报告
--------------------------------------------------------------------------------

日期和时间 2015年7月23日 下午03时22分53秒 时的报告

安装
--------------------------------------------------------------------------------
产品目录                     /opt/IBM/WebSphere/AppServer
版本目录                     /opt/IBM/WebSphere/AppServer/properties/version
DTD 目录                   /opt/IBM/WebSphere/AppServer/properties/version/dtd
日志目录                     /home/wasadmin/var/ibm/InstallationManager/logs

产品列表
--------------------------------------------------------------------------------
ND                       已安装

已安装产品
--------------------------------------------------------------------------------
名称         IBM WebSphere Application Server Network Deployment
版本         8.5.5.2
标识         ND
构建级别       cf021414.01
构建日期       4/8/14
软件包        com.ibm.websphere.ND.v85_8.5.5002.20140408_1947
体系结构       x86-64 (64 bit)
已安装功能部件    针对 Java 的 IBM 64 位 WebSphere SDK
           WebSphere Application Server Full Profile
           用于 EJB 3.0 之前的模块的 EJBDeploy 工具
           可嵌入式 EJB 容器
           独立瘦客户机和资源适配器
可选语言       简体中文

--------------------------------------------------------------------------------
结束安装状态报告
was8.5.5.2安装升级完成

*********************************************************************************************
然后开始安装ibmjdk1.7:
解压安装包后,获取软件包标识,下面安装需要用到此参数:
[wasadmin@was02 tools]$ ./imcl listAvailablePackages -repositories /opt/JDK1.7/
com.ibm.websphere.IBMJAVA.v70_7.0.4001.20130510_2103
[wasadmin@was02 tools]$ ./imcl install com.ibm.websphere.IBMJAVA.v70_7.0.4001.20130510_2103 \
-repositories /was/JDK1.7/repository.config \
-installationDirectory /was/WebSphere/AppServer \
-acceptLicense \
-showVerboseProgress
可以查看屏幕详细输出信息,此处省略
安装成功后,查看jdk版本是否为IBMJAVA7:
[wasadmin@was02 bin]$ ./versionInfo.sh
WVER0010I: Copyright (c) IBM Corporation 2002, 2012; All rights reserved.
WVER0012I: VersionInfo reporter V1.15.1.48,日期:2/8/12

--------------------------------------------------------------------------------
IBM WebSphere 产品安装状态报告
--------------------------------------------------------------------------------

日期和时间 2015年7月23日 下午03时50分32秒 时的报告

安装
--------------------------------------------------------------------------------
产品目录                     /opt/IBM/WebSphere/AppServer
版本目录                     /opt/IBM/WebSphere/AppServer/properties/version
DTD 目录                   /opt/IBM/WebSphere/AppServer/properties/version/dtd
日志目录                     /home/wasadmin/var/ibm/InstallationManager/logs

产品列表
--------------------------------------------------------------------------------
IBMJAVA7                 已安装
ND                       已安装

已安装产品
--------------------------------------------------------------------------------
名称         IBM WebSphere SDK Java Technology Edition (Optional)
版本         7.0.4.1
标识         IBMJAVA7
构建级别       gm1318.03
构建日期       5/10/13
软件包        com.ibm.websphere.IBMJAVA.v70_7.0.4001.20130510_2103
体系结构       x86-64 (64 bit)
已安装功能部件    IBM WebSphere SDK for Java Technology Edition 7
可选语言       简体中文

已安装产品
--------------------------------------------------------------------------------
名称         IBM WebSphere Application Server Network Deployment
版本         8.5.5.2
标识         ND
构建级别       cf021414.01
构建日期       4/8/14
软件包        com.ibm.websphere.ND.v85_8.5.5002.20140408_1947
体系结构       x86-64 (64 bit)
已安装功能部件    针对 Java 的 IBM 64 位 WebSphere SDK
           WebSphere Application Server Full Profile
           用于 EJB 3.0 之前的模块的 EJBDeploy 工具
           可嵌入式 EJB 容器
           独立瘦客户机和资源适配器
可选语言       简体中文

--------------------------------------------------------------------------------
结束安装状态报告
--------------------------------------------------------------------------------
ibmjdk1.7安装完成

************************************************************************************************
然后开始安装IHS:
解压安装包后,获取软件包标识,下面安装需要用到此参数:
[wasadmin@was02 tools]$ ./imcl listAvailablePackages -repositories /opt/IHS/
com.ibm.websphere.IHS.v85_8.5.5000.20130514_1044
[wasadmin@was02 tools]$ ./imcl install com.ibm.websphere.IHS.v85_8.5.5000.20130514_1044 \
-repositories /opt/IHS/repository.config \
-installationDirectory /opt/IBM/HTTPServer \
-properties "user.ihs.httpPort=80,user.ihs.allowNonRootSilentInstall=true,cic.selector.nl=zh" \
-acceptLicense  \
-showVerboseProgress
可以查看屏幕详细输出信息,此处省略
安装成功后,开始安装补丁:
[wasadmin@was02 tools]$ ./imcl updateAll \
-repositories /opt/IHS/pak/repository.config \
-installationDirectory /opt/IBM/HTTPServer \
-acceptLicense \
-showVerboseProgress
可以查看屏幕详细输出信息,此处省略
安装成功后,验证ihs版本信息:
[wasadmin@was02 bin]$ /opt/IBM/HTTPServer/bin/versionInfo.sh
ihs8.5.5.2安装升级完成

************************************************************************************************
然后开始安装PLG:
解压安装包后,获取软件包标识,下面安装需要用到此参数:
[root@was02 tools]# ./imcl listAvailablePackages -repositories /opt/IHS/pak
com.ibm.websphere.PLG.v85_8.5.5000.20130514_1044
[wasadmin@was02 tools]$ ./imcl install com.ibm.websphere.PLG.v85_8.5.5000.20130514_1044 \
-repositories /opt/IHS/repository.config \
-installationDirectory /opt/IBM/HTTPServer/Plugins1 \
-acceptLicense  \
-showVerboseProgress
安装成功后,开始安装补丁:
[wasadmin@was02 tools]$ ./imcl updateAll \
-repositories /opt/IHS/pak/repository.config \
-installationDirectory /opt/IBM/HTTPServer/Plugins \
-acceptLicense \
-showVerboseProgress
可以查看屏幕详细输出信息,此处省略
安装成功后,验证ihs版本信息:
[wasadmin@was02 bin]$ /opt/IBM/HTTPServer/Plugins/bin/versionInfo.sh
Plugins安装升级完成
----------------------------------------------
Web 服务器可以是应用程序服务器的“远程”服务器,即 Web 服务器和应用程序服务器位于不同机器上。
最后通过控制台新建webserver,远程指定创建非受管节点。非受管节点表示拓扑中某一没有应用程序服务器进程或 Node Agent 进程的节点。非受管节点用于其他服务器进程,例如,存在于拓扑中它们自己的节点上的 Web 服务器。
------------------------------------------------------------------------------------------------------------------
安装WebSphere Customization Toolbox(WCT)
[wasadmin@was02 tools]$ ./imcl install com.ibm.websphere.WCT.v85_8.5.5000.20130514_1044 \
-repositories /opt/ihs/repository.config \
-installationDirectory /was/WebSphere/Toolbox \
-acceptLicense  \
-showVerboseProgress


使用WCT工具生成webserver1:
[wasadmin@k1test01app bin]$ vi /was/WebSphere/Toolbox/WCT/pct_responsefile.txt
################################################################################################################################S
# Note: Default Web server Plugins install locations
# ----------------------------------------
#
#  Below are the default install locations for each supported operating system.
#
#  AIX:  "/usr/IBM/WebSphere/Plugins"
#
#  HP-UX, Linux, and Solaris: "/opt/IBM/WebSphere/Plugins"
#
#  Windows: "C:\Program Files\IBM\WebSphere\Plugins"
#
#  Note: On unix operating systems, spaces in the install location is not supported.
################################################################################

################################################################################
#
# configuration Type
#
# Valid Options :       local   WebSphere Application Server and Web server on same machine
#                       remote  WebSphere Applicaiton Server and Web server on seperate machines.
#                       local_distributed  Required when the profile on WebSphere Application
                                Server is federated to a Deployment Manager
#

configType="remote"


################################################################################
#
# WAS V8.0 Existing Location
#
# Valid Options : Existing WebSphere Application Server Version 8.0 install home directory.
#
# Note  : This option is valid for local install type.
#         The install will use the directory entered below.
#

#wasExistingLocation="C:\Program Files\IBM\WebSphere\AppServer"


################################################################################
#
# Web server to configure
#
# Valid options
#       : ihs           IBM HTTP Server V7.0
#       : apache22      Apache Web Server V2.2
#       : domino7       Lotus Domino Web Server V7.0 (not supported on HP-UX, Solaris x64 (x86_64))
#       : domino8       Lotus Domino Web Server V8.0 (not supported on HP-UX, Solaris x64 (x86_64))
#       : sunone        Sun Java System Web Server V6.1 or Sun Java System Web Server V7.0
#       : iis6          Microsoft Internet Information Services V6 (supported on Windows)
#       : iis7          Microsoft Internet Information Services V7 (supported on Windows)

#
# Note  : Specify only one Web server to configure.
#

webServerSelected="ihs"


################################################################################
#
# IHS-specific Administrator settings
#
################################################################################
#
# HTTP Administration Port number
#
# Specify the HTTP Administration Port number (only specify value when configuring IHS)
#

ihsAdminPort="8008"


################################################################################
#
# IHS Administrator User ID for IHS Administration server
#
# Specify the IHS Administrator server userid. (only specify value when configuring IHS)
#

ihsAdminUserID="wasadmin"


################################################################################
#
# IHS Administrator User Group for IHS Administration server
#
# Specify the user Group of the IHS administration process started in
# case of unix platforms. (only specify value when configuring IHS)
#

ihsAdminUserGroup=""


################################################################################
#
# Web server Configuration File 1
#
# Valid options for Web server configuration file 1
#
#       ihs         : httpd.conf
#       apache      : httpd.conf
#       domino8     : Notes.jar       (Lotus Domino Web Server V8.0)
#       domino7     : Notes.jar       (Lotus Domino Web Server V7.0)
#       sunone      : magnus.conf

#
#  Note : File must exist
#

webServerConfigFile1="/was/HTTPServer/conf/httpd.conf"


################################################################################
#
# Web server Configuration File 2
#
# Valid options for Web server configuration file 2
#
#       domino8 : names.nsf       (Lotus Domino Web Server V8.0)
#       domino7 : names.nsf       (Lotus Domino Web Server V7.0)
#       sunone  : obj.conf
#           
# Note  : File must exist
#

#webServerConfigFile2=""


################################################################################
#
# Web server port number
#
# Specify the Web server port for the Web server selected to be configured.
#

webServerPortNumber="80"


################################################################################
#
# Domino 7.0/8.0 User ID
#
# Specify the Domino 7.0/8.0 User ID.
#

dominoUserID="notes"


################################################################################
#
# Web server Definition Name
#
# A web server definition allows for Web server administration through the WebSphere
# admin console.
#
#  Note : No spaces are allowed in the Web server definition name.
#

webServerDefinition="webserver1"


################################################################################
#
# WebSphere Application Server Machine HostName
#
# remote install type   : enter the hostname of the WebSphere Application Server machine.
# local install type    : "" (hostname of target install machine will be used.)
#

wasMachineHostName="vm801"


################################################################################
#
#  Advanced User Options available in silent installs only
#  
#  Map all the existing deployed applications to the Web server.
#
#  Valid Options
#           true  :  Web server Definition is mapped as a target to the existing deployed applications such as snoop and hitcount (Recommended)
#           false :  No applications are mapped to the Web server definition.
#
#  Note : If not set to a valid option of true or false, the installer will set to true and continue install.
#

mapWebserverToApplications="true"


################################################################################
#
#  Web server Hostname
#
#  In advanced scenarios where a user has multiple Web server hostnames on a machine, set the entry
#  below to the Web server hostname used to configure.
#
#  Valid Options :
#           ""              :  Install will resolve to hostname detected on machine (Recommended)
#           "<HOSTNAME>"    :  Where <HOSTNAME> is a Web server hostname on the machine.
#

webServerHostName="vm801"


################################################################################
#
#  Web Server Installation Architecture
#
#  Identify the Web server Installation architecture.
#
#  Valid Options :
#               "32"    :       Valid for 32 bit Web server Installations
#               "64"    :       Valid for 64 bit Web server Installations
#               ""      :       (Architecture of the Web server machine will be used)
#

webServerInstallArch="64"


################################################################################
#
# WAS Profile Name
#
# Specify the name of the WAS Profile to be configured. This option is only valid
# in local install scenarios.
#
# Valid options:
#     "<WAS_profile_name>"  : User must enter the name of an existing WAS profile
#                             leaving the string empty will result in the installer
#                             using the default profile
#                             example.  profileName="AppSrv01"
#

#profileName=""

################################################################################
#
# Additional IHS-specific Configuration settings, Tentative
#
################################################################################
#
# Create a User and Group for the IHS Administrative Server
#
# Optionally creates a user and group when configuring the IHS Administrative
# Server (only specify value when configuring IHS)
#
# Valid options:
#                   "true"  : A user and group will be created if neccessary
#                   "false" : A user and group will not be created
#

ihsAdminCreateUserAndGroup="true"

################################################################################
#
# IHS Administrative Server User ID for Unix
#
# The User ID to be used with the IHS Administrative Server on Unix
# (only specify value when configuring IHS)
#
# Valid options:
#    "<IHS_admin_user_ID>"  : User must enter the ID for the IHS Administrative
#                             server
#           

#ihsAdminUnixUserID=""

################################################################################
#
# IHS Administrative Server User Group for Unix
#
# The name of the user group that is to be used when configuring the IHS
# Administrative Server (only specify value when configuring IHS)
#
# Valid options:
# "<IHS_admin_user_group>"  : User must enter name of the group that is to be used
#

#ihsAdminUnixUserGroup=""

################################################################################
#
# IHS Administrative Server Password
#
# The user password to the IHS Administrative Server to be configured, this will
# change to a command line argument in the near future to follow security
# guidelines (only specify value when configuring IHS)
#
# Valid options:
#   "<IHS_admin_password>"  : User must enter the password of the User
#                             to the IHS administrative Server to be configured
#           

ihsAdminPassword="wasadmin"

#################################################################################
#
# Enable IHS Administrative Server Support
#
# Conditional to configure the IHS Administrative Server
# (only specify value when configuring IHS)
#
#
# Valid options:
#                   "true"  : Support will be enabled and the IHS Administrative
#                             Server will be configured
#                  "false"  : Support will not be enabled and IHS Administrative
#                             Server will not be configured at this point

enableAdminServerSupport="true"

#################################################################################
#
# Enable Configuration using a User ID and password
#
# Conditional to enable support in PCT to configure the IHS Administrative Server
# with a Used ID and password as credentials
# (only specify value when configuring IHS)
#
#
# Valid options:
#                   "true"  : Support to configure the IHS Administrative Server
#                             with a given User ID and Password will be enabled.
#                                     The additional, revelvant credentials must be
#                             supplied.
#                  "false"  : Support for User ID and Password will not be
#                             enabled, no additional values in relation are
#                             required
#

enableUserAndPass="true"

#################################################################################
#
# Type of the Webserver to be Configured
#
# Similar to webServerSelected, and must remain cohesive,
# this is a tentative addition. This is also an optional value and can be
# ommitted under most circumstances
#
# Valid options:
#       : IHS           IBM HTTP Server V7.0
#       : APACHE22      Apache Web Server V2.2
#       : DOMINO7       Lotus Domino Web Server V7.0 (not supported on HP-UX, Solaris x64 (x86_64))
#       : DOMINO8       Lotus Domino Web Server V8.0 (not supported on HP-UX, Solaris x64 (x86_64))
#       : SUNJAVASYSTEM Sun Java System Web Server V6.1 or Sun Java System Web Server V7.0
#       : IIS6          Microsoft Internet Information Services V6 (supported on Windows)
#       : IIS7          Microsoft Internet Information Services V7 (supported on Windows)
#

#
# Note  : Specify only one Web server to configure.
#

webServerType="IHS"

[wasadmin@k1test01app WCT]$ pwd
/was/WebSphere/Toolbox/WCT
[wasadmin@k1test01app WCT]$ ./wctcmd.sh -tool pct \
-createDefinition \
-defLocName DefinitionLocationName \
-defLocPathname /was/WebSphere/Plugins \
-response /was/WebSphere/Toolbox/WCT/pct_responsefile.txt

正在导入定义位置...

已成功导入定义位置

正在启动工具 pct ...

工具执行已成功完成。

******************************************************************************************************************************************



已将 com.ibm.websphere.IHS.v85_8.5.5000.20130514_1044 安装到 /opt/HTTPServer 目录。
0 0
原创粉丝点击