利用指令行指令來安裝

您可以利用指令 Shell 來安裝 Rational Collaborative Lifecycle Management 產品解決方案。 這個方法也稱為「無聲自動安裝」。

開始之前

程序

  1. 下載平台適用的 Web 安裝程式檔案,將內容解壓縮到您硬碟上的位置。
    附註:
    • 將您下載的任何其他 Installation Manager 儲存庫檔案解壓縮到「Web 安裝程式」的相同目錄中。
    • For AIX operating system 在 IBM AIX® 平台上,請勿利用 jar 指令來解壓縮套件。 請使用 unzip 指令。
  2. 開啟一個指令 Shell,切換至下列其中一個您平台上含有 Installation Manager 及回應檔的子目錄:
    • For Windows operating system Windows:ExtractedDir\im\win32.win32.x86
    • For Linux operating system Linux x86:ExtractedDir/im/linux.gtx.x86
    • For Linux operating system Linux on Power:ExtractedDir/im/linux.gtx.ppc
    • For Linux operating system Linux for System z®:ExtractedDir/im/linux.gtx.s390
    • For Solaris operating system Solaris:ExtractedDir/im/solaris.gtk.sparc
    • For AIX operating system AIX:ExtractedDir/im/aix.motif.ppc
  3. 兩個範例回應檔專用來安裝 Jazz™ Team Server 和 Jazz 型應用程式:silent-install-server.xml 和 silent-install-server2.xml。
    附註:
    • 如果執行 Script 的機器上沒有安裝 IBM Installation Manager,silent-install-server2.xml 會安裝 Installation Manager。如果您使用 silent-install-server.xml Script 來安裝,請確定您已安裝 Installation Manager。
    • 回應檔包含使用 -acceptLicense 引數的指令行呼叫範例。 在嘗試指令行安裝之前,請檢閱在產品下載最上層之 /license 目錄中的授權合約。 請在指令行中,利用 -acceptLicense 引數來指示接受這份授權合約。
    • 每個回應檔都有一行參照安裝期間要用的 Installation Manager 儲存庫。 請編輯 repository location 屬性,指向 Installation Manager 儲存庫檔案解壓縮目錄中的 repository.config 檔。
      <repository location='../repository.config' />
    For Windows operating system silent-install-server.xml 回應檔會產生一個 Rational CLM 產品解決方案安裝架構,您可以將它壓縮並重新安置在檔案系統的其他位置,或重新安置到有相同作業系統和架構的其他電腦中。 如果要在 Windows 上使用這個安裝方法,請執行下列指令,在 C:\tmp\silent-install\JazzTeamServer 目錄中尋找伺服器安裝架構:
     .\userinstc -acceptLicense -dataLocation C:\tmp\silent-install\data -silent -showVerboseProgress -nosplash -input silent-install-server.xml
    For Unix operating systems 如果要在 UNIX 系統上使用這個安裝方法,請執行下列指令,在 /tmp/silent-install/JazzTeamServer 目錄中尋找伺服器安裝架構:
     ./userinstc -acceptLicense -dataLocation /tmp/silent-install/data -silent -showVerboseProgress -nosplash -input silent-install-server.xml

    silent-install-server2.xml 回應檔會利用平台的預設 Installation Manager 安裝位置來安裝 Jazz Team Server。

    For Windows operating system 在 Windows 上,如果要以管理者身分安裝到共用區域中,請在下列指令中使用 installc 變式:
     .\installc -acceptLicense -showVerboseProgress -input silent-install-server2.xml --launcher.ini silent-install.ini
    如果要安裝到使用者特定的位置,請在下列指令中使用 userinstc 變式:
     .\userinstc -acceptLicense -showVerboseProgress -input silent-install-server2.xml --launcher.ini user-silent-install.ini
    For Unix operating systems 在 UNIX 系統上,如果要以管理者身分安裝到共用區域中,請在下列指令中使用 installc 變式:
     ./installc -acceptLicense -showVerboseProgress -input silent-install-server2.xml --launcher.ini silent-install.ini
    如果要安裝到使用者特定的位置,請在下列指令中使用 userinstc 變式:
     ./userinstc -acceptLicense -showVerboseProgress -input silent-install-server2.xml --launcher.ini user-silent-install.ini
  4. 如果要移除應用程式而不予以安裝,請搜尋含有類似如下 TODO 註解的字行:
    <!-- TODO: Remove line below to prevent installation of [Name of application or feature] -->
    舉例來說,如果您不想安裝「變更與配置管理」應用程式,請找出以下所顯示的字行,並移除或註銷含有 <offering .../> XML 元素的字行:
    <!-- TODO: Remove line below to prevent installation of the Change and Configuration Management app. -->
    <offering profile="TMP" id='com.ibm.team.install.jfs.app.rtc'/>
  5. 其他應用程式安裝架構的回應檔,結構和功能都類似於 silent-install-server2.xml 檔。 下列範例顯示如何利用 silent-install-buildsystem.xml 回應檔來安裝 Build System Toolkit。
    For Windows operating system 在 Windows 上,如果要以管理者身分安裝到共用區域中,請在下列指令中使用 installc 變式:
     .\installc -acceptLicense -showVerboseProgress -input silent-install-buildsystem.xml --launcher.ini silent-install.ini
    如果要安裝到使用者特定的位置,請在下列指令中使用 userinstc 變式:
     .\userinstc -acceptLicense -showVerboseProgress -input silent-install-buildsystem.xml --launcher.ini user-silent-install.ini
    For Unix operating systems 在 UNIX 系統上,如果要以管理者身分安裝到共用區域中,請在下列指令中使用 installc 變式:
     ./installc -acceptLicense -showVerboseProgress -input silent-install-buildsystem.xml --launcher.ini silent-install.ini
    如果要安裝到使用者特定的位置,請在下列指令中使用 userinstc 變式:
     ./userinstc -acceptLicense -showVerboseProgress -input silent-install-buildsystem.xml --launcher.ini user-silent-install.ini

    如果要安裝其他產品,請更換回應檔的名稱。比方說,如果要安裝 Client for Eclipse IDE,請將 silent-install-buildsystem.xml 更換為 silent-install-client.xml。


意見