WAS8.5靜默安裝


安裝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 目錄。
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章