以管理員身份登入,視實例的 Web 容器而異。例如,如果 Web Server 6.1 為新實例的 Web 容器,以超級使用者 (root) 或 Web Server Administration Server 的使用者帳號登入。
複製 amsamplesilent 檔案到可寫入目錄,並將該目錄設為目前使用的目錄。例如,您可以建立一個稱為 /newinstances 的目錄。
提示:重新命名 amsamplesilent 檔案的副本,以說明您要部署的新實例。例如,下列步驟使用一個稱為 amnewws6instance 的輸入檔案,以安裝 Web Server 6.1 的新實例。
在新的 amnewws6instance 檔案中設定下列變數:
DEPLOY_LEVEL=1 NEW_INSTANCE=true |
在 amnewws6instance 檔案中,視需要為您要建立的新實例設定其他變數。關於這些變數的描述,請參閱下列章節中的表格:
執行 amconfig,指定新的 amnewws6instance 檔案。例如,在 Solaris 系統上:
# cd opt/SUNWam/bin/ # ./amconfig -s ./newinstances/amnewws6instance |
-s 選項於無訊息模式中執行 amconfig。
amconfig 程序檔視需要呼叫其他配置程序檔,使用 amnewws6instance 檔案中的變數部署新實例。