這些指示假設您是以一般使用者身份登入,而不是以 root 身份,而且已經有人以 root 身份登入並安裝了 Service Registry。
變更至 ServiceRegistry-base/install 目錄。
將 install.properties.template 檔案複製到主目錄中的某個位置,並且將該檔案重新命名。
使用指令,如下所示:
cp install.properties.template $HOME/sr.properties |
在文字編輯器中開啟檔案副本,並且依您所需修改特性。
您必須提供下列特性的密碼值,這些值目前在範本檔案中保留為空白。
registry.install.AdministratorPassword= registry.install.ApplicationServerKeystorePassword= registry.install.RegistryServerKeystorePassword=
變更檔案的權限,設定為只有您可讀取該檔案。
執行以下類似指令:
chmod 400 $HOME/sr.properties |
在 ServiceRegistry-base/install 目錄中,執行以下類似指令(全部位於同一行),以指定已修改檔案的位置。
Ant-base/ant -f build-install.xml -Dinstall.properties=$HOME/sr.properties configure
使用類似的指令,執行您所需的其他任何配置目標。
Registry 配置程序會在 $HOME/srvc-registry/domains/${registry.install.DomainName} 中建立 Application Server 網域。預設網域名稱為 registry。
Registry 配置程序會將 Registry 資料庫和伺服器金鑰庫安裝在目錄 $HOME/srvc-registry/3.0 中。
Registry 配置程序會建立名稱為 $HOME/srvc-registry/cacerts 的目錄,供您放置 Application Server 網域應信任的新增憑證。
檢查 ant configure 指令的輸出以查看是否有錯誤。
如果沒有錯誤,您可以立即開始使用 Web Console 或 Admin Tool。