設定 Qpid Broker-J

本文說明如何設定及覆寫 Edge for Private Cloud apigee-qpidd 元件的設定。在這個和後續版本的 Edge for Private Cloud 中,Qpid 元件包含 Java 代理程式 (Qpid Broker-J 10.0.1)。如要進一步瞭解 Broker-J,請參閱「 Apache Qpid Broker-J 10.0.1」。

關於 Qpid 管理控制台

您可以透過 Qpid 網頁管理控制台設定及管理 Qpid Broker-J。如要瞭解如何使用控制台監控 Qpid 佇列和訊息,請參閱「 監控 Apache Qpid Broker-J」。

在以下各節中,我們將說明如何透過編輯屬性檔案 (也稱為程式碼與設定或 CwC),管理 Qpid 管理控制台設定。

在安裝期間設定 Qpid 管理控制台憑證

如要在安裝程序中設定 Qpid 管理控制台憑證,請按照下列步驟操作:

  1. 開啟安裝拓撲的 Edge 設定檔。請參閱「Edge 設定檔」。
  2. 設定使用者名稱和密碼憑證變數:
    # silent.conf
    QPID_MGMT_USERNAME=USERNAME
    QPID_MGMT_PASSWORD=PASSWORD
  3. 執行設定指令碼:
    /opt/apigee/apigee-setup/bin/setup.sh -p qs -f configFile

修改 Qpid 管理控制台憑證

如要在安裝後修改 Qpid 管理控制台憑證,請按照下列步驟操作:

  1. 建立暫存檔案,並在其中設定下列變數。(您也可以視需要使用原始設定檔)。
    # silent.conf
    QPID_MGMT_USERNAME=USERNAME
    QPID_MGMT_PASSWORD=PASSWORD
  2. 執行下列指令:
    apigee-service apigee-qpidd set_management_credentials -f CONFIG_FILE
  3. 重新啟動 Qpid 代理程式:
    apigee-service apigee-qpidd restart
  4. 針對每個 Qpid 節點逐一重複上述步驟。

覆寫預設 Qpid 代理程式設定

  1. 建立或編輯下列檔案
    APIGEE_ROOT/customer/application/qpidd.properties
  2. 視需要新增、移除或修改設定。以下範例會修改管理憑證和預設入口網站通訊埠號碼:
    # Example for modifying management credentials and port.
    
    conf_qpidd_qpid.authenticationproviders.users.name=username
    conf_qpidd_qpid.authenticationproviders.users.password=pass123
    
    # Example for setting the management portal port. Default is 8090.
      
    conf_qpidd_qpid.ports.http_port=10001
  3. 儲存變更,並確保檔案由 apigee 使用者擁有且可讀取:
    chown apigee:apigee APIGEE_ROOT/customer/application/qpidd.properties
  4. 重新啟動 qpidd 程序:
    apigee-service apigee-qpidd restart