使用 featureManager 指令來安裝資產

您可以使用 featureManager 指令,在 Liberty 環境中安裝 Liberty Repository 特性,並檢視必要的特性資訊。featureManager findinstalluninstall 動作已穩定。對於這些動作,請改用 installUtility 指令。

開始之前

您必須先安裝 WebSphere Application Server Liberty,才能使用 featureManager 指令來存取 Liberty Repository。

關於這項作業

安裝 Liberty 之後,您可以執行 featureManager 指令來安裝 Liberty Repository 特性。featureManager 指令會自動安裝資產相依關係。
提示: 使用 installUtility 指令,而非 featureManager 指令。藉由 installUtility 指令,您可以管理更多的資產類型,並安裝、尋找或下載多個儲存庫中的資產。如需相關資訊,請參閱使用 installUtility 指令來安裝資產

程序

  1. 檢閱 Liberty Repository 中的資產,並取得您要安裝之每一個資產的 feature_shortName 需要資產的 feature_shortName,才能下載並安裝資產。您可以使用 featureManager 指令,來尋找和檢閱資產,或者可以在 WASdev.net 的 Downloads 頁面中尋找它們。
    1. 如果要使用 featureManager 指令,來檢閱資產並取得資產的 feature_shortName,請使用 featureManager find 指令。
      • 如果要尋找適用於您配置的資產,請指定要搜尋的字串:
        featureManager find searchString
      • 如果要檢視詳細資訊,請使用 --viewInfo 選項;例如:
        featureManager find searchstring --viewInfo
    2. 如果要從 WASdev 網站檢閱資產,並取得資產的 feature_shortName,請針對您要安裝的每一個特性,在 WASdev 網站上查看資產詳細資料頁面。 feature_shortName 可在資產詳細資料頁面的安裝指示中找到;例如:Portlet 儲存器 feature_shortNameportlet-2.0
    如需所有 Liberty 特性的清單,請參閱 Liberty 特性
  2. 執行 featureManager 指令來安裝資產。 請執行下列指令:
    featureManager install feature_shortName --when-file-exists=ignore
    如果要安裝多個特性,請使用逗點將每個 feature_shortName 隔開,例如:
    featureManager install feature_shortName1 feature_shortName2 --when-file-exists=ignore

    如果要將特性下載至本端目錄,而不安裝特性,請使用 --downloadOnly 選項;例如:

    bin/featureManager install feature_shortName1 feature_shortName2 --downloadOnly=[all|required*|none]
    您可以將這個選項配置成下載所有的相依特性、此執行時期所需的相依特性,或是不下載任何相依特性。預設值是下載必要的相依特性。如果要指定本端目的地目錄,請搭配使用這個選項與 --location=directoryPath 選項。

    如果要從本端來源目錄來安裝特性,請使用 --location=directoryPath 選項;例如:

    bin/featureManager install feature_shortName1 feature_shortName2 --location=directoryPath

    如果您不想連接 Liberty Repository,請使用 --offlineOnly 選項,從本端目錄來安裝特性;例如:

    bin/featureManager install feature_shortName1 feature_shortName2 --offlineOnly --location=directoryPath
  3. 使用 featureManager 指令來查看您已安裝的資產或取得說明。 如需相關資訊,請參閱:featureManager 指令

指示主題類型的圖示 作業主題



「時間戳記」圖示 前次更新: 2016 年 11 月 30 日
http://www14.software.ibm.com/webapp/wsbroker/redirect?version=cord&product=was-libcore-mp&topic=t_install_assets_cmd
檔名:t_install_assets_cmd.html