可以使用 Installation Manager imcl
install 命令来安装任何产品。
关于此任务
可以使用 Installation Manager 命令行来安装所有产品,其中包括:
- 所有的 WebSphere Application Server 修订版
- Application Client for WebSphere Application Server
- DMZ Secure Proxy Server for WebSphere Application Server
- IBM HTTP Server
- Web 服务器插件
- WebSphere Customization
Toolbox
有关产品的完整列表,请参阅用于受支持操作系统的 WebSphere Application Server 产品供应项目。
对于转换用户: IBM
SDK Java™ Technology Edition V8 是 WebSphere Application Server
V9.0 的 Java SDK 版本。
IBM SDK Java Technology Edition 不再嵌套在任何 WebSphere Application Server 产品中。Java SDK 作为单独产品提供,在安装产品时必须安装此 SDK。trns
有关使用 imcl 命令的信息,请参阅 IBM Installation Manager
文档。
过程
- 登录系统。
确保使用具有 *ALLOBJ 和 *SECADM 特权的用户概要文件登录到 IBM i 系统。
- 选择单独的目录位置来存储产品二进制文件。如果您是第一次从 Installation Manager 的这个实例进行安装,那么也可以选择共享数据位置。
- 启动命令行。
在 CL 命令行上,运行 STRQSH 命令以启动 Qshell 命令 shell。
- 验证您是否具有在所选目录中安装产品需要的许可权。
- 切换到 Installation Manager 安装目录中的 eclipse/tools 子目录。
- 验证产品存储库是否可用。
listAvailablePackages 命令用于列出产品的一个或多个级别。
![[Windows]](../images/windows.gif)
imcl.exe listAvailablePackages -repositories source_repository
![[AIX]](../images/aixlogo.gif)
![[HP-UX]](../images/hpux.gif)
![[Linux]](../images/linux.gif)
![[Solaris]](../images/solaris.gif)
![[IBM i]](../images/iseries.gif)
./imcl listAvailablePackages -repositories source_repository
- 可选: 如果存储库需要用户名和密码,请创建主密码文件和凭证存储文件以访问此存储库。
- 可选: 创建主密码文件。
主密码文件是一个包含口令(例如“此文本是主密码”)的文本文件。此文件用于保护认证凭证的安全。
如果您创建主密码文件,并且在创建凭证时使用该文件,那么必须始终指定主密码文件。
提示: 要保护此文件的安全,请根据您的操作系统相应设置许可权以限制对此文件的访问。
- 通过运行 imutilsc saveCredential 命令来创建凭证存储文件。
![[Windows]](../images/windows.gif)
imutilsc.exe saveCredential
-secureStorageFile storage_file
-userName user_ID -userPassword user_password
-url source_repository
![[AIX]](../images/aixlogo.gif)
![[HP-UX]](../images/hpux.gif)
![[Linux]](../images/linux.gif)
![[Solaris]](../images/solaris.gif)
![[IBM i]](../images/iseries.gif)
./imutilsc saveCredential
-secureStorageFile storage_file
-userName user_ID -userPassword user_password
-url source_repository
提示: 创建凭证存储文件时,如果 imutilsc 命令找不到指定的 URL,请在存储库 URL 位置的末尾追加
/repository.config。
有关更多信息,请参阅 IBM Installation Manager 文档。
- 运行 imcl 命令安装产品。
imcl 命令具有以下示例所示的格式和选项。
要点: 因为 IBM SDK Java Technology Edition 不再嵌入在产品中,所以您必须同时指定产品标识和
IBM Java SDK 产品标识 (
com.ibm.java.jdk.v8)。如果没有 Java SDK,将无法安装产品。
![[Windows]](../images/windows.gif)
imcl.exe install offering_ID_offering_version,optional_feature_ID com.ibm.java.jdk.v8
-repositories source_repository
-installationDirectory installation_directory
-sharedResourcesDirectory shared_directory
-accessRights access_mode
-preferences preference_key=value
-properties property_key=value
-secureStorageFile storage_file -masterPasswordFile master_password_file
-acceptLicense
![[AIX]](../images/aixlogo.gif)
![[HP-UX]](../images/hpux.gif)
![[Linux]](../images/linux.gif)
![[Solaris]](../images/solaris.gif)
./imcl install offering_ID_offering_version,optional_feature_ID com.ibm.java.jdk.v8
-repositories source_repository
-installationDirectory installation_directory
-sharedResourcesDirectory shared_directory
-accessRights access_mode
-preferences preference_key=value
-properties property_key=value
-secureStorageFile storage_file -masterPasswordFile master_password_file
-acceptLicense
![[IBM i]](../images/iseries.gif)
要点: IBM i 上的所有应用程序都使用操作系统随附的 Java SDK,因此在 IBM i 上无法随任何产品一起安装 IBM SDK Java Technology Edition。
./imcl install offering_ID_offering_version,optional_feature_ID
-repositories source_repository
-installationDirectory installation_directory
-sharedResourcesDirectory shared_directory
-accessRights access_mode
-preferences preference_key=value
-properties property_key=value
-secureStorageFile storage_file -masterPasswordFile master_password_file
-acceptLicense
- 安装产品和可选功能部件
对于某些产品,您可以逗号分隔列表形式添加要安装的可选功能部件。如果未指定可选功能部件,那么将安装一组缺省功能部件。要仅安装所需的功能部件,请明确指定功能部件列表。
下表显示了产品标识、每个产品的可选功能部件和缺省功能部件:
表 1. 产品标识和可选功能部件产品标识 |
可选功能部件标识 |
缺省功能部件 |
WebSphere Application Server Network Deployment com.ibm.websphere.ND.v90
|
- core.feature: WebSphere Application Server
必须指定此功能部件才能指定以下可选子功能部件: - samples:样本应用程序
- thinclient:独立瘦客户机和资源适配器
- embeddablecontainer:可嵌入 EJB 容器
- ejbdeploy:用于 EJB 3.0 以前的模块的 EJBDeploy 工具
注: 以后,无法使用 Installation Manager 的修改、更新或回滚功能来添加或除去
core.feature。只能添加或除去子功能部件。
|
- core.feature
- thinclient
- embeddablecontainer
- ejbdeploy
|
Application Client for WebSphere Application Server com.ibm.websphere.APPCLIENT.v90
|
- samples:样本
- standalonethinclient.resourceadapter.runtime:独立瘦客户机运行时
- standalonethinclient.resourceadapter.samples:独立瘦客户机样本
- embeddablecontainer:可嵌入 EJB 容器
|
embeddablecontainer |
DMZ Secure Proxy Server for IBM WebSphere Application Server com.ibm.websphere.NDDMZ.v90
|
- core.feature: DMZ Secure Proxy Server for IBM WebSphere Application Server
|
无缺省功能部件 |
Web 服务器插件 com.ibm.websphere.PLG.v90
|
无可选功能部件 |
不适用 |
WebSphere Customization Toolbox com.ibm.websphere.WCT.v90
|
- zpmt:Profile Management Tool(仅限于 z/OS)
- zmmt:z/OS 迁移管理工具
- pct:Web 服务器插件配置工具
|
缺省情况下,将安装所有可选功能部件
|
- 指定产品版本
offering_version 是要安装的特定产品版本,可以选择性地使用下划线将其附加到产品标识(例如 9.0.0.x_0200)。
- 如果未指定 offering_version,那么将安装产品的最新版本以及该版本的所有临时修订。
- 如果指定了 offering_version,那么将安装产品的指定版本,但不会安装该版本的临时修订。
对存储库运行以下命令时,可以看到产品版本通过下划线附加到产品标识的末尾:
imcl listAvailablePackages -repositories source_repository
- 安装临时修订
要指示您想要随产品一起安装哪些临时修订,请随 -installFixes 自变量一起指定
none、recommended 或 all。
- 如果未指定产品版本,那么 -installFixes 选项缺省为 all。
- 如果指定了产品版本,那么 -installFixes 选项缺省为 none。
- 指定访问权
如果先前指定了 Installation Manager 的安装方式,那么 -accessRights
参数不是必需的。
- 选择是否保存软件包版本以进行回滚
Installation Manager 可以保存软件包的较早版本,以便您稍后遇到问题时可以回滚。当 Installation Manager 将软件包回滚到较早版本时,会卸载当前版本的文件并重新安装较早版本。
如果您选择不保存这些文件以用于回滚,那么可通过在命令指定项中使用以下首选项来阻止保存文件:
-preference com.ibm.cic.common.core.preferences.preserveDownloadedArtifacts=False
提示: 即使您选择不使用此选项在本地保留用于回滚的文件,也仍可以通过访问相应的产品存储库来回滚到先前安装的级别。
有关设置 Installation Manager 首选项的更多信息,请参阅 IBM Installation Manager 文档。
设置 user_data_root
![[IBM i]](../images/iseries.gif)
最佳实践: 对于初始安装,请指定
user_data_root;否则,
user_data_root 的缺省值为
/QIBM/UserData/WebSphere/AppServer/V9/ND。
bprac
要指定 user_data_root,请在对
was.install.os400.profile.location 属性指定
user_data_root 文件路径的情况下运行
imcl 命令。例如:-properties
was.install.os400.profile.location=/QIBM/UserData/WebSphere/AppServer/V9/ND。
示例
![[Windows]](../images/windows.gif)
以下示例说明如何在 Windows 操作系统上安装
WebSphere Application Server 的最新版本:
imcl install com.ibm.websphere.ND.v90 com.ibm.java.jdk.8
-installationDirectory "C:\Program Files\IBM\WebSphere\AppServer"
-sharedResourcesDirectory "C:\Program Files\IBM\IMShared"
-repositories C:\IBM\REP\WSAS9ENT
-acceptLicense
-showProgress
-log installv9.xml
-preferences com.ibm.cic.common.core.preferences.keepFetchedFiles=false,com.ibm.cic.common.core.preferences.preserveDownloadedArtifacts=false
![[IBM i]](../images/iseries.gif)
以下示例说明如何在 IBM i 操作系统上安装
WebSphere Application Server 的最新版本:
./imcl install com.ibm.websphere.ND.v90
-repositories https://downloads.mycorp.com:8080/WAS_90_repository
-installationDirectory /QIBM/ProdData/WebSphere/AppServer/V9/ND
-properties was.install.os400.profile.location=/QIBM/UserData/WebSphere/AppServer/V9/ND
-sharedResourcesDirectory /QIBM/UserData/InstallationManager/IMShared
-secureStorageFile $HOME/WASFiles/temp/credential.store
-acceptLicense
下一步做什么
安装完成后,程序可能会将重要的安装后指示信息写至标准输出。