使用命令行在 IBM i 操作系统上安装 Web 2.0 and Mobile Toolkit

可以使用 Installation Manager 来通过 Installation Manager 命令行安装 Web 2.0 and Mobile Toolkit。

开始之前

要点: 安装 Web 2.0 and Mobile Toolkit 之前,必须阅读 Web 2.0 and Mobile Toolkit 文件随附的许可协议。如下所示,通过在命令中指定 -acceptLicense,表明您接受该许可协议。
  1. 使用 Installation Manager 来连接到包含最新产品文件的存储库并更新产品。
  2. 使用 Installation Manager 来连接到包含最新 Installation Manager 文件的存储库并更新 Installation Manager。
  3. 获取对必需的 Web 2.0 and Mobile Toolkit 文件的访问权。
    安装 Web 2.0 and Mobile Toolkit 有三个基本选项。
    • 访问物理介质,并使用本地安装

      可以访问产品介质上的存储库。使用 Installation Manager 以从介质上的产品存储库安装 Web 2.0 and Mobile Toolkit。

    • 从 Passport Advantage® 站点下载文件,并使用本地安装
      具有 Passport Advantage 标识和密码并获得许可授权的客户可以从 Passport Advantage 站点下载必需的存储库。
      1. 从 Passport Advantage 站点下载存储库。
      2. 使用 Installation Manager 以从下载的存储库安装 Web 2.0 and Mobile Toolkit。
    • 访问活动存储库,并使用基于 Web 的安装
      如果您具有 Passport Advantage 标识和密码,那么可以使用 Installation Manager 以从基于 Web 的存储库安装 Web 2.0 and Mobile Toolkit。使用 Installation Manager 以从位于
      http://www.ibm.com/software/repositorymanager/com.ibm.websphere.W2MTK.v11
      的基于 Web 的存储库安装 Web 2.0 and Mobile Toolkit。
      注: 此位置不包含可以使用 Web 浏览器访问的 Web 页面。这是基于 Web 的远程存储库位置,您必须将该位置添加到 Installation Manager 首选项中,然后 Installation Manager GUI 才能访问此存储库中的文件以安装产品。

      您应尽可能使用基于 Web 的远程存储库,以便可以访问最新的安装文件。

过程

  1. 可选: 如果存储库需要用户名和密码,请创建密钥环文件以访问此存储库。

    有关创建用于 Installation Manager 的密钥环文件的更多信息,请阅读 IBM Installation Manager 信息中心

  2. 选择三个不同的位置作为 Web 2.0 and Mobile Toolkit 二进制文件、运行时数据(代理程序数据)和共享数据的位置。
  3. 使用具有 *ALLOBJ 和 *SECADM 特权的用户概要文件来登录到 IBM® i 系统。
  4. 在 CL 命令行上,运行 STRQSH 命令以启动 Qshell 命令 shell。
  5. 确保已将 umask 设置为 022。
    要验证 umask 设置,发出以下命令:
    umask
    要将 umask 设置设置为 022,发出以下命令:
    umask 022
  6. 切换到 Installation Manager 安装目录中的 eclipse/tools 子目录。
  7. 使用 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
    注意:
    • 在此产品安装映像或存储库的 lafilesproduct_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
任务主题    

信息中心的条款和条件 | 反馈

最近更新日期: May 11, 2012 12:10 PM EDT
http://www14.software.ibm.com/webapp/wsbroker/redirect?version=v850webmob&product=was-nd-mp&topic=tweb_ins_installation_is_cl
文件名: tweb_ins_installation_is_cl.html