設定記錄檔位置

Edge for Private Cloud 4.18.01 版

根據預設,Edge 元件的記錄檔會寫入 /opt/apigee/var/log/compName 目錄。請按照下列程序,變更所有 Edge 元件 (Edge UI 除外) 的預設位置:

  1. 建立下列檔案:
    /opt/apigee/etc/compName.d/APIGEE_APP_LOGDIR.sh
  2. 在檔案中加入下列屬性:
    APIGEE_APP_LOGDIR=/foo/bar
    其中 /foo/bar 指定記錄檔的目錄。
  3. 確認「apigee」使用者可存取該目錄
    > chown apigee:apigee /foo/bar
  4. 重新啟動元件:
    > /opt/apigee/apigee-service/bin/apigee-service compName restart