移除或删除现有 Websphere Application Server 的配置文件

Remove or Delete existing Websphere Application Server's profile

我想从我的机器上删除 Websphere Application Server 配置文件及其服务。

在配置文件管理工具中,我只能看到创建配置文件的选项,没有删除现有配置文件的选项

那么如何删除和删除现有配置文件的服务?

  1. 首先使用列出您环境中的所有配置文件 管理配置文件 命令。

    ex:WAS_Home/bin/manageprofiles.bat -listProfiles
    
  2. 停止与该配置文件相关的所有服务器。

  3. 停止与该配置文件相关的节点代理、dmgr 进程。
  4. 按照语法使用 manageprofiles 命令删除配置文件 语法:

    WAS_Rootbin/manageprofiles.bat  -delete -profileName <profile_name>
    

    manage profiles 命令有更多选项,例如 username,password.

  5. 删除配置文件后使用 manageprofiles 检查配置文件列表 命令。

    manageprofiles.bat -listProfiles
    

这取决于您的操作系统。尝试将 manageprofiles.bat 用于 Windows 或 manageprofiles.sh 用于位于 [=18 的 UNIX/Linux =]was_install_dir\bin\

您可以阅读如何使用此命令删除配置文件 here

或使用manageprofiles.sh -help

我删除了使用

创建的配置文件

manageProfiles.bat

在下面找到删除配置文件的命令是

manageprofiles -delete -profileName <YourProfileName>

manageprofiles.sh -delete -profileName 适用于 Unix。

但是,与 WAS 卸载脚本一样 - 存在必须手动解决的文件系统残留。在我的例子中,名为文件夹的配置文件仍然存在,其中只有日志文件夹和从属文件。