安裝 Application Server 的預設位置是 /opt/SUNWappserver/appserver (在 Solaris 作業系統上) 和 /opt/sun/appserver (在 Linux 和 HP-UX 系統上)。如果您已將 Application Server 安裝在其他位置上,則在配置 Service Registry 之前,必須先編輯一份 install.properties 檔案。
變更至 ServiceRegistry-base/install 目錄。
將 install.properties 檔案複製到安全的位置,並將它重新命名。
使用指令,如下所示:
cp install.properties $HOME/hidden_dir/sr.properties |
變更 properties 檔案的權限,使檔案成為可寫入形式。
使用類似以下的指令:
chmod 600 $HOME/hidden_dir/sr.properties |
在文字編輯器中開啟檔案。
尋找將 appserver.root.dir 特性標記為註釋的定義。
移除註釋字元 (#),並使用 Application Server 的實際位置替代特性定義。
儲存並關閉檔案。
繼續依照配置 Service Registry中的說明進行操作。