我想克隆一个现有的配置文件,启动服务器并通过管理控制台对其进行修改。
我已经阅读了有关的IBM文档
manageprofiles.bat
但是manageprofiles工具不包含以下内容:
# would be nice if a clone action exists
manageprofiles.bat -clone -profileName base -targetProfileName base1
这就是我所需要的,但我看不到实现这一目标的方法。
该工具可以创建,删除,备份和还原配置文件。
我已经尝试过的
但是该配置文件仍未被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_SCRIPT
中AppServer\properties\fsdb\<newProfile>.bat
的路径这对我有用。请发表评论或投票,让我知道它是否对您也有用。
关于websphere - 如何克隆WebSphere 8概要文件,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/17525260/