在分散式作業系統上的 Liberty 中新增與移除特性
您可以利用 Installation Manager 來安裝及移除 WebSphere® Application Server Liberty Core 特性。
開始之前
請確定您的 Installation Manager 喜好設定是指向包含 WebSphere Application Server Liberty Core 的適當 Web 型或本端儲存庫。
關於這項作業
您可以利用 Installation Manager,透過下列其中一項程序,來安裝或移除特性:
程序
範例
在下列範例中,括弧內是選用的特性供應項目名稱;例如:可內嵌的 EJB 儲存器和 JPA 用戶端 (embeddablecontainer)將特性新增至安裝架構的回應檔範例:
<?xml version="1.0" encoding="UTF-8"?> <agent-input clean='true' temporary='true'> <server> <repository location='http://www.ibm.com/software/repositorymanager/com.ibm.websphere.liberty.v85'/> </server> <install modify='true'> <offering id='com.ibm.websphere.liberty.v85' profile='WebSphere Liberty V8.5' features='embeddablecontainer'/> </install> <profile id='WebSphere Liberty V8.5' installLocation='C:\Program Files\IBM\WebSphere\Liberty'> </profile> </agent-input>
修改為將特性新增至安裝架構的 imcl 指令範例:
imcl.exe modify com.ibm.websphere.liberty.v85 -addFeatures embeddablecontainer -repositories http://www.ibm.com/software/repositorymanager/com.ibm.websphere.liberty.v85 -installationDirectory C:\Program Files\IBM\WebSphere\Liberty -secureStorageFile C:\credential.store -masterPasswordFile C:\master_password_file.txt
註: 當使用 Installation Manager 1.6.2 版及更新的版本時,您應該利用 -secureStorageFile 和 -masterPasswordFile 選項,將認證儲存在認證儲存檔中。 在 1.6.2 版之前的 Installation Manager 版本中,-keyring 和 -password 選項是用來存取金鑰環檔案中的認證。 在 1.6.2 版中,這些選項已淘汰。 因檔案結構的差異,並無金鑰環檔案至儲存檔的移轉路徑。 如需利用 -secureStorageFile 和 -masterPasswordFile 選項將認證儲存在認證儲存檔的相關資訊,請參閱 Installation Manager 1.6 版資訊中心。 如需利用 -keyring 和 -password 選項將認證儲存在金鑰環檔案的相關資訊,請參閱 Installation Manager 1.5 版資訊中心。- 修改為將特性從安裝架構移除的 imcl 指令範例:
imcl.exe modify com.ibm.websphere.liberty.v85 -removeFeatures embeddablecontainer -repositories http://www.ibm.com/software/repositorymanager/com.ibm.websphere.liberty.v85 -installationDirectory C:\Program Files\IBM\WebSphere\Liberty -secureStorageFile C:\credential.store -masterPasswordFile C:\master_password_file.txt