使用响应文件在 IBM i 操作系统上安装 Web 2.0 and Mobile Toolkit

可以使用 Installation Manager 来通过响应文件安装 Web 2.0 and Mobile Toolkit。

开始之前

安装 Web 2.0 and Mobile Toolkit 之前,确保您的用户概要文件具有 *ALLOBJ 和 *SECADM 特权。

  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 的远程存储库,以便可以访问最新的安装文件。

关于此任务

借助 Installation Manager,可以使用响应文件来安装 Web 2.0 and Mobile Toolkit。

过程

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

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

  2. 使用具有 *ALLOBJ 和 *SECADM 特权的用户概要文件来登录到 IBM® i 系统。
  3. 在 CL 命令行上,运行 STRQSH 命令以启动 Qshell 命令 shell。
  4. 确保已将 umask 设置为 022。
    要验证 umask 设置,发出以下命令:
    umask
    要将 umask 设置设置为 022,发出以下命令:
    umask 022
  5. 使用响应文件来安装 Web 2.0 and Mobile Toolkit。
    切换到 Installation Manager 安装目录中的 eclipse/tools 子目录,然后使用响应文件来安装 Web 2.0 and Mobile Toolkit。例如:
    ./imcl -acceptLicense 
      input $HOME/WASFiles/temp/install_response_file.xml 
      -log $HOME/WASFiles/temp/install_log.xml 
      -keyring $HOME/WASFiles/temp/im.keyring
    注意:
    • 在此产品安装映像或存储库的 lafilesproduct_name/lafiles 子目录下的许可协议文件中,提供了相关的条款和条件、声明和其他信息。
    • /QIBM/ProdData/InstallationManager 是 IBM i 系统上 Installation Manager 文件的缺省安装位置。
    • 程序可能会将重要的安装后指示信息写入到标准输出。

    有关更多信息,请阅读 IBM Installation Manager 信息中心

示例

以下是一个响应文件示例,该文件使用位于 http://www.ibm.com/software/repositorymanager/com.ibm.websphere.W2MTK.v11 的基于 Web 的存储库来将 Web 2.0 and Mobile Toolkit 安装到 /QIBM/ProdData/WebSphere/AppServer/Web20Mobile/V11 目录中。
<?xml version="1.0" encoding="UTF-8"?>
<agent-input clean='true' temporary='true'>
<server>
  <repository location='http://www.ibm.com/software/repositorymanager/com.ibm.websphere.W2MTK.v11'/>
</server>
<profile id='Web 2.0 and Mobile Toolkit V1.1'
  installLocation='/QIBM/ProdData/WebSphere/AppServer/Web20Mobile/V11'>
  <data key='eclipseLocation' value='/QIBM/ProdData/WebSphere/AppServer/Web20Mobile/V11'/>
  <data key='was.install.os400.profile.location' value='/QIBM/UserData/WebSphere/AppServer/Web20Mobile/V11'/>
  <data key='user.import.profile' value='false'/>
  <data key='cic.selector.nl' value='en'/>
</profile>
<install modify='false'>
  <offering profile='Web 2.0 and Mobile Toolkit V1.1' id='com.ibm.websphere.W2MTK.v11'/>
</install>
<preference name='com.ibm.cic.common.core.preferences.eclipseCache' value='/QIBM/UserData/InstallationManager/IMShared'/>
<preference name='com.ibm.cic.common.core.preferences.connectTimeout' value='30'/>
<preference name='com.ibm.cic.common.core.preferences.readTimeout' value='30'/>
<preference name='com.ibm.cic.common.core.preferences.downloadAutoRetryCount' value='0'/>
<preference name='offering.service.repositories.areUsed' value='true'/>
<preference name='com.ibm.cic.common.core.preferences.ssl.nonsecureMode' value='false'/>
<preference name='com.ibm.cic.common.core.preferences.http.disablePreemptiveAuthentication' value='false'/>
<preference name='http.ntlm.auth.kind' value='NTLM'/>
<preference name='http.ntlm.auth.enableIntegrated.win32' value='true'/>
<preference name='com.ibm.cic.common.core.preferences.preserveDownloadedArtifacts' value='true'/>
<preference name='com.ibm.cic.common.core.preferences.keepFetchedFiles' value='false'/>
<preference name='PassportAdvantageIsEnabled' value='false'/>
<preference name='com.ibm.cic.common.core.preferences.searchForUpdates' value='true'/>
</agent-input>
提示:
  • 确保存储库位置指向基于 Web 的存储库或本地存储库。例如:
    <repository location='https://downloads.mycorp.com:8080/Web20Mobile_v11_repository'/>
  • 该示例中的以下行指定 IBM i 的概要文件位置的缺省值:
    <data key='was.install.os400.profile.location' value='/QIBM/UserData/WebSphere/AppServer/Web20Mobile/V11'/>
    要覆盖此缺省位置,请指定其他位置。
  • 该示例中的以下行指定 IBM i 的共享资源目录的缺省值:
    <preference name='com.ibm.cic.common.core.preferences.eclipseCache' value='/QIBM/UserData/InstallationManager/IMShared'/>
    要覆盖此缺省位置,请指定其他位置。
    注: Installation Manager 只有一个共享资源目录。如果过去系统上已存在安装,那么系统将使用该共享资源目录而非响应文件中指定的共享资源目录。
  • 要在响应文件中禁用更新的远程搜索,请将以下首选项设置为 false:
    • offering.service.repositories.areUsed

      用于在远程存储库中搜索已安装产品的更新

    • com.ibm.cic.common.core.preferences.searchForUpdates

      用于搜索 Installation Manager 的更新

    例如:
    <preference name='offering.service.repositories.areUsed' value='false'/>
    . . .
    <preference name='com.ibm.cic.common.core.preferences.searchForUpdates' value='false'/>
    可以在 IBM Installation Manager 信息中心中查找有关静默首选项键的更多详细信息。
任务主题    

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

最近更新日期: 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_silent
文件名: tweb_ins_installation_is_silent.html