Sun Java System Delegated Administrator 6.4 管理指南

部署自訂配置檔案

當您使用 config-commda 程式配置 Delegated Administrator 時, config-commda 會將配置檔案置於 Delegated Administrator 安裝目錄中的配置資料標準位置中。然後 config-commda 程式會將配置檔案部署至已部署 Delegated Administrator 的 Web 容器應用程式儲存庫中。

因此,配置檔案的部署位置會根據您使用的 Web 容器而改變。

在執行階段中,Delegated Administrator 會使用部署位置中配置檔案的特性值,檔案位於部署 Delegated Administrator 的 Web 容器儲存庫中。

若要自訂配置檔案,您必須執行這些步驟:

  1. 編輯位於 Delegated Administrator 安裝目錄中的原始配置檔案。

  2. 使用 Delegated Administrator 提供的程序檔將配置檔案重新部署至 Web 容器。

當您自訂配置檔案時,在您將檔案重新部署至 Web 容器之前,新的值並不會生效。

本小節的剩餘篇幅將描述以下主題:

配置檔案的原始 (標準) 位置

在配置 Delegated Administrator 之後 (執行 config-commda 程式後),配置檔案會位於以下目錄中:

配置檔案的部署位置

在執行 config-commda 程式後,根據您選擇部署 Delegated Administrator 的 Web 容器,配置檔案將部署至以下位置。

Delegated Administrator 伺服器檔案 (resource.properties) 的部署位置

resource.properties 檔案會部署至以下其中一個預設位置:

Web Server 6.x

/opt/SUNWwbsvr/https-hostname/webapps/https-hostname \
/commcli/WEB-INF/classes/sun/comm/cli/server/servlet
Web Server 7.x

/var/opt/SUNWwbsvr7/https-hostname/webapps/hostname \
/commcli/WEB-INF/classes/sun/comm/cli/server/servlet
Application Server 7.x

/var/opt/SUNWappserver7/domains/domain1/server1 \
/applications/j2ee-modules \
/commcli/WEB-INF/classes/sun/comm/cli/server/servlet
Application Server 8.x

/var/opt/SUNWappserver/domains/domain1 \
/applications/j2ee-modules \
/commcli/WEB-INF/classes/sun/comm/cli/server/servlet

Delegated Administrator 主控台配置檔案的部署位置

以下檔案會部署至相同預設位置:

根據您選擇部署 Delegated Administrator 的 Web 容器,這些特性檔案會部署至以下其中一個預設位置:

Web Server 6.x

/opt/SUNWwbsvr/https-hostname/webapps/https-hostname \
/da/WEB-INF/classes/com/sun/comm/da/resources
Web Server 7.x

/var/opt/SUNWwbsvr7/https-hostname/webapps/hostname \
/da/WEB-INF/classes/com/sun/comm/da/resources
Application Server 7.x

/var/opt/SUNWappserver7/domains/domain1/server1 \
/applications/j2ee-modules \
/Delegated_Administrator/WEB-INF \
/classes/com/sun/comm/da/resources
Application Server 8.x

/var/opt/SUNWappserver/domains/domain1 \
/applications/j2ee-modules \
/Delegated_Administrator/WEB-INF \
/classes/com/sun/comm/da/resources

Procedure若要部署自訂配置檔案

  1. 以超級使用者身份 (或成為超級使用者) 登入並移至以下目錄:

    /opt/SUNWcomm/sbin

  2. 執行適當的部署程序檔將自訂的配置檔案重新部署至 Delegated Administrator 使用的 Web 容器。

    您必須將配置檔案重新部署至已部署 Delegated Administrator 的 Web 容器,而您上次也在該 Delegated Administrator 中執行 Delegated Administrator 配置程式 (config-commda)。

    請使用可同時套用至自訂配置檔案和正確 Web 容器的部署程序檔。

    例如,若要將 resource.properties 檔案重新部署至 Web Server 6,請執行此指令:


    # ./config-wbsvr-commcli
    

    如需部署程序檔的清單,請參閱配置檔案部署程序檔

配置檔案部署程序檔

每個 Web 容器有兩個部署程序檔。其中一個程序檔會部署 Delegated Administrator 伺服器檔案。另外一個會部署 Delegated Administrator 主控台檔案:

部署程序檔如下所示:

Web Server 6
  • Delegated Administrator 伺服器檔案 (resource.properties ) 的部署程序檔:

    config-wbsvr-commcli

  • Delegated Administrator 主控台檔案的部署程序檔:

    config-wbsvr-da

若要執行程序檔,請輸入這些指令:


# ./config-wbsvr-commcli
# ./config-wbsvr-da
Web Server 7.x
  • Delegated Administrator 伺服器檔案 (resource.properties ) 的部署程序檔:

    config-wbsvr7x-commcli

  • Delegated Administrator 主控台檔案的部署程序檔:

    config-wbsvr7x-da

若要執行程序檔,請輸入這些指令:


# ./config-wbsvr7x-commcli
# ./config-wbsvr7x-da
Application Server 7.x
  • Delegated Administrator 伺服器檔案 (resource.properties ) 的部署程序檔:

    config-appsvr-commcli

  • Delegated Administrator 主控台檔案的部署程序檔:

    config-appsvr-da

若要執行程序檔,請輸入這些指令:


# ./config-appsvr-commcli deploy
# ./config-appsvr-da deploy

您必須使用引數 deploy 執行這些指令。

Application Server 8.x
  • Delegated Administrator 伺服器檔案 (resource.properties ) 的部署程序檔:

    config-appsvr8x-commcli

  • Delegated Administrator 主控台檔案的部署程序檔:

    config-appsvr8x-da

若要執行程序檔,請輸入這些指令:


# ./config-appsvr8x-commcli deploy
# ./config-appsvr8x-da deploy

您必須使用引數 deploy 執行這些指令。