如何克隆WebSphere 8概要文件

Ren*_*ink 7 websphere websphere-8

我想克隆现有的配置文件,启动服务器并通过管理控制台进行修改.

我已经阅读了IBM的文档

 manageprofiles.bat
Run Code Online (Sandbox Code Playgroud)

但manageprofiles工具不包含以下内容:

 # would be nice if a clone action exists
 manageprofiles.bat -clone -profileName base -targetProfileName base1
Run Code Online (Sandbox Code Playgroud)

这就是我需要的,我没有看到实现这一目标的方法.该工具可以创建,删除,备份和还原配置文件.

我已经尝试过了什么

  1. 复制配置文件目录并重命名
  2. 编辑bin/setupCmdLine.bat中的路径
  3. 将配置文件添加到AppServer/properties/profileRegistry.xml
  4. 执行manageprofiles -validateAndUpdateRegistry

但WAS尚未认可该概况.我可以通过执行验证这一点

manageprofiles -listProfiles
Run Code Online (Sandbox Code Playgroud)

如何克隆或复制配置文件?

有手动方式吗?

如果是这样,必须编辑配置文件目录中的哪些文件?

Ren*_*ink 7

解决了

以下是我克隆现有配置文件的手动步骤.

  1. 确保服务器已关闭.
  2. 将现有的个人资料从中复制Profiles/<oldProfile>Profiles/<newProfile>
  3. 更新路径WAS_USER_SCRIPTProfiles\<newProfile>\bin\setupCmdLine.bat
  4. 更新路径USER_INSTALL_ROOTProfiles\<newProfile>\bin\setupCmdLine.bat
  5. 更新性质user.rootProfiles\<newProfile>\properties\ssl.client.props
  6. 替换出现的所有<oldProfile><newProfile>Profiles\<newProfile>\firststeps\firststeps.bat
  7. 编辑AppServer\properties\profileRegistry.xml.复制<oldProfile>并使用更新标记值<newProfile>.应该看起来像这样:<profile isAReservationTicket="false" isDefault="false" name="newProfile" path=".....\Profiles\newProfile" template=".......\AppServer\profileTemplates\default"/>
  8. 复制AppServer\properties\fsdb\<oldProfile>.batAppServer\properties\fsdb\<newProfile>.bat.此步骤将使配置文件可用于"AppServer\bin\manageprofiles.bat -listProfiles"
  9. 编辑config/cells/<cell>/nodes/<node>/variables.xml.更新USER_INSTALL_ROOT路径.
  10. 更新的路径WAS_USER_SCRIPTAppServer\properties\fsdb\<newProfile>.bat

这对我有用.请评论或投票,让我知道它是否也适合你.

  • 你正确的bkail.我也对此表示怀疑,但我想记录对我有用的方法(WAS 8.0)并希望能帮助其他人. (3认同)

小智 5

这是一个内置的 WebSphere 解决方案。这在 WAS 8.5.5.3 上运行良好。

  1. 配置文件中运行您的应用程序服务器
  2. 通过运行脚本<WAS_INSTAL_ROOT>/AppServer/profiles/<YOUR_SOURCE_PROFILE>/bin/wsadmin.sh<WAS_INSTAL_ROOT>/AppServer/profiles/<YOUR_SOURCE_PROFILE>/bin/wsadmin.bat(在 Windows 机器上)运行命令行实用程序
  3. 在此实用程序中执行命令:

    $AdminTask exportWasprofile {-archive <PATH/TO/PROFILE/EXPORT/ARCHIVE>}

  4. 创建新的目标配置文件或使用现有的并在其上运行应用程序服务器
  5. 通过运行脚本或(在 Windows 机器上)运行目标配置文件的命令行实用程序<WAS_INSTAL_ROOT>/AppServer/profiles/<YOUR_TARGET_PROFILE>/bin/wsadmin.sh<WAS_INSTAL_ROOT>/AppServer/profiles/<YOUR_TARGET_PROFILE>/bin/wsadmin.bat
  6. 在此实用程序中执行命令将配置文件设置导入目标配置文件:

    $AdminTask importWasprofile { <PATH/TO/PROFILE/EXPORT/ARCHIVE>-archive -deleteExistingServers}

  7. 在此实用程序中执行命令将新设置保存到目标配置文件中:

    $AdminConfig 保存