websphere - 如何克隆WebSphere 8概要文件

标签 websphere websphere-8

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

我已经阅读了有关的IBM文档

 manageprofiles.bat

但是manageprofiles工具不包含以下内容:
 # would be nice if a clone action exists
 manageprofiles.bat -clone -profileName base -targetProfileName base1

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

我已经尝试过的
  • 复制配置文件目录并将其重命名为
  • 编辑bin/setupCmdLine.bat中的路径
  • 将配置文件添加到AppServer/properties/profileRegistry.xml
  • 执行的manageprofiles -validateAndUpdateRegistry

  • 但是该配置文件仍未被WAS识别。我可以通过执行验证
    manageprofiles -listProfiles
    

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

    有手动方式吗?

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

    最佳答案

    解决了

    这是我克隆现有配置文件的手动步骤。

  • 确保服务器已关闭。
  • 将现有配置文件从Profiles/<oldProfile>复制到Profiles/<newProfile>
  • WAS_USER_SCRIPT中更新路径Profiles\<newProfile>\bin\setupCmdLine.bat
  • USER_INSTALL_ROOT中更新路径Profiles\<newProfile>\bin\setupCmdLine.bat
  • 更新user.root中的属性Profiles\<newProfile>\properties\ssl.client.props
  • 将所有出现的<oldProfile>替换为<newProfile>中的Profiles\<newProfile>\firststeps\firststeps.bat
  • 编辑AppServer\properties\profileRegistry.xml。复制<oldProfile>并使用<newProfile>更新标签值。应该看起来像这样:<profile isAReservationTicket="false" isDefault="false" name="newProfile" path=".....\Profiles\newProfile" template=".......\AppServer\profileTemplates\default"/>
  • AppServer\properties\fsdb\<oldProfile>.bat复制到AppServer\properties\fsdb\<newProfile>.bat。此步骤将使配置文件可用于“AppServer\bin\manageprofiles.bat -listProfiles”
  • 编辑config/cells/<cell>/nodes/<node>/variables.xml。更新USER_INSTALL_ROOT路径。
  • 更新WAS_USER_SCRIPTAppServer\properties\fsdb\<newProfile>.bat的路径

  • 这对我有用。请发表评论或投票,让我知道它是否对您也有用。

    关于websphere - 如何克隆WebSphere 8概要文件,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/17525260/

    相关文章:

    websphere - IBM wsadmin - 如何获取每个应用程序服务器的应用程序状态

    java - 显示前端文件夹中的文件

    java - 有没有办法在 Oracle 异常上触发 jvm 线程转储?

    ant - 有没有办法在本地没有 WAS 或 RAD 的情况下使用普通 Ant 远程部署到 Websphere 6.1?

    java - Spring Boot : "Cannot set level: INFO, ERROR for ' org. springframework'"使用 logback-spring.xml

    java - 启用 Websphere 安全性后 Arquillian 测试停止工作

    java - IBM Websphere 包的 Maven 依赖项

    websphere - 安装 Websphere Application Server Network Deployment 的步骤

    java - 将 Spring Boot 应用程序部署到 Websphere 8.5.5.8

    httpclient - 为 RestTemplate 设置 Http 连接池时的 Websphere 问题