可以使用 Installation Manager 来通过 Installation Manager 命令行安装 Web 2.0 and Mobile Toolkit。
开始之前
要点: 安装 Web 2.0 and Mobile Toolkit 之前,必须阅读 Web 2.0 and Mobile Toolkit 文件随附的许可协议。如下所示,通过在命令中指定 -acceptLicense,表明您接受该许可协议。
- 使用 Installation Manager 来连接到包含最新产品文件的存储库并更新产品。
- 使用 Installation Manager 来连接到包含最新 Installation Manager 文件的存储库并更新 Installation Manager。
- 获取对必需的 Web 2.0 and Mobile Toolkit 文件的访问权。
安装 Web 2.0 and Mobile Toolkit 有三个基本选项。
过程
- 可选: 如果存储库需要用户名和密码,请创建密钥环文件以访问此存储库。
有关创建用于 Installation Manager 的密钥环文件的更多信息,请阅读 IBM Installation Manager 信息中心。
- 选择三个不同的位置作为 Web 2.0 and Mobile Toolkit 二进制文件、运行时数据(代理程序数据)和共享数据的位置。
- 使用具有 *ALLOBJ 和 *SECADM 特权的用户概要文件来登录到 IBM® i 系统。
- 在 CL 命令行上,运行 STRQSH 命令以启动 Qshell 命令 shell。
- 确保已将 umask 设置为 022。
要验证 umask 设置,发出以下命令:
umask
要将 umask 设置设置为 022,发出以下命令:
umask 022
- 切换到 Installation Manager 安装目录中的 eclipse/tools 子目录。
- 使用 imcl 命令来安装 Web 2.0 and Mobile Toolkit。
./imcl install package_id_version,feature_id
-repositories source_repository
-installationDirectory installation_directory
-sharedResourcesDirectory shared_directory
-accessRights access_mode
-preferences preference_key=value
-properties property_key=value
-keyring keyring_file -password password
-acceptLicense
注意: - 在此产品安装映像或存储库的 lafiles 或 product_name/lafiles 子目录下的许可协议文件中,提供了相关的条款和条件、声明和其他信息。
- 程序可能会将重要的安装后指示信息写入到标准输出。
有关使用 imcl 命令来安装 Web 2.0 and Mobile Toolkit 的更多信息,请参阅 IBM Installation Manager 信息中心。
示例
以下是使用
imcl 命令来安装 Web 2.0 and Mobile Toolkit 的示例:
./imcl install com.ibm.websphere.W2MTK.v11
-repositories https://downloads.mycorp.com:8080/WEB2MOBILE_repository
-installationDirectory /QIBM/ProdData/WebSphere/AppServer/Web20Mobile/V11
-properties was.install.os400.profile.location=/QIBM/UserData/Websphere/Appserver/Web20Mobile/V11
-sharedResourcesDirectory /QIBM/UserData/InstallationManager/IMShared
-keyring $HOME/WASFiles/temp/im.keyring
-acceptLicense