在分布式操作系统上安装和移除 Liberty 功能部件
可以使用 Installation Manager 来安装和移除 WebSphere® Application Server Liberty Core 功能部件。
开始之前
确保 Installation Manager 首选项指向相应的基于 Web 的存储库或本地存储库(包含 WebSphere Application Server Liberty Core)。
关于此任务
可使用 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 V1.6.2 和更高版本时,您应该使用 -secureStorageFile 和 -masterPasswordFile 选项将凭证存储在凭证存储文件中。对于版本低于 V1.6.2 的 Installation Manager,使用 -keyring 和 -password 选项来访问密钥环文件中的凭证。V1.6.2 中不推荐使用这些选项。不存在从密钥环文件到存储文件的迁移路径,这是因为,这些文件的结构存在差异。有关使用 -secureStorageFile 和 -masterPasswordFile 选项将凭证存储在凭证存储文件中的更多信息,请参阅 Installation Manager V1.6 信息中心。有关使用 -keyring 和 -password 选项将凭证存储在密钥环文件中的更多信息,请参阅 Installation Manager V1.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