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)
这就是我需要的,我没有看到实现这一目标的方法.该工具可以创建,删除,备份和还原配置文件.
我已经尝试过了什么
但WAS尚未认可该概况.我可以通过执行验证这一点
manageprofiles -listProfiles
Run Code Online (Sandbox Code Playgroud)
如何克隆或复制配置文件?
有手动方式吗?
如果是这样,必须编辑配置文件目录中的哪些文件?
解决了
以下是我克隆现有配置文件的手动步骤.
Profiles/<oldProfile>到Profiles/<newProfile>WAS_USER_SCRIPT中Profiles\<newProfile>\bin\setupCmdLine.batUSER_INSTALL_ROOT中Profiles\<newProfile>\bin\setupCmdLine.bat user.root的Profiles\<newProfile>\properties\ssl.client.props<oldProfile>同<newProfile>在Profiles\<newProfile>\firststeps\firststeps.batAppServer\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这对我有用.请评论或投票,让我知道它是否也适合你.
小智 5
这是一个内置的 WebSphere 解决方案。这在 WAS 8.5.5.3 上运行良好。
<WAS_INSTAL_ROOT>/AppServer/profiles/<YOUR_SOURCE_PROFILE>/bin/wsadmin.sh或<WAS_INSTAL_ROOT>/AppServer/profiles/<YOUR_SOURCE_PROFILE>/bin/wsadmin.bat(在 Windows 机器上)运行命令行实用程序$AdminTask exportWasprofile {-archive
<PATH/TO/PROFILE/EXPORT/ARCHIVE>}
<WAS_INSTAL_ROOT>/AppServer/profiles/<YOUR_TARGET_PROFILE>/bin/wsadmin.sh<WAS_INSTAL_ROOT>/AppServer/profiles/<YOUR_TARGET_PROFILE>/bin/wsadmin.bat$AdminTask importWasprofile {
<PATH/TO/PROFILE/EXPORT/ARCHIVE>-archive -deleteExistingServers}
$AdminConfig 保存
| 归档时间: |
|
| 查看次数: |
15261 次 |
| 最近记录: |