使用wasprofile命令行工具创建和删除WebSphere应用服务器配置档案

本文介绍了如何使用IBM WebSphere的wasprofile命令行工具来创建和删除应用服务器配置档案,包括具体的命令语法和操作示例,适用于系统管理员和WebSphere环境维护人员。

wasprofile -create -delete

有时您需要以静默方式执行操作,无需任何询问,需要“直接执行”的态度。我经常遇到这个问题。

如果您想从命令行删除或创建WebSphere配置档案,请尝试以下操作。(我仅在RSA中尝试过)

删除配置档案

1
wasprofile -delete -profileName MyProfile

删除成功后您应该会看到以下消息:

1
INSTCONFSUCCESS: Success: The profile no longer exists.

创建WebSphere配置档案

1
2
3
4
wasprofile -create -profileName MyProfile -profilePath \
[PROFILE PATH] -templatePath \
[RSA HOME]runtimes\base_v6\profileTemplates\default \
-nodeName [NODE NAME] -cellName [CELL NAME] -hostName [HOSTNAME]
comments powered by Disqus
使用 Hugo 构建
主题 StackJimmy 设计