Service Registry 3.1 管理指南

配置非預設 Application Server 安裝的 Service Registry

安裝 Application Server 的預設位置是 /opt/SUNWappserver/appserver (在 Solaris 作業系統上) 和 /opt/sun/appserver (在 Linux 和 HP-UX 系統上)。如果您已將 Application Server 安裝在其他位置上,則在配置 Service Registry 之前,必須先編輯一份 install.properties 檔案。

Procedure編輯一份 install.properties 檔案的副本

  1. 變更至 ServiceRegistry-base/install 目錄。

  2. install.properties 檔案複製到安全的位置,並將它重新命名。

    使用指令,如下所示:


    cp install.properties $HOME/hidden_dir/sr.properties
    
  3. 變更 properties 檔案的權限,使檔案成為可寫入形式。

    使用類似以下的指令:


    chmod 600 $HOME/hidden_dir/sr.properties
    
  4. 在文字編輯器中開啟檔案。

  5. 尋找將 appserver.root.dir 特性標記為註釋的定義。

  6. 移除註釋字元 (#),並使用 Application Server 的實際位置替代特性定義。

  7. 儲存並關閉檔案。

接下來的步驟

繼續依照配置 Service Registry中的說明進行操作。