简体   繁体   English

是否可以使用某些工具将 weblogic 及其域从 linux 复制到 windows?

[英]Is it possible to coppy weblogic and it's domain from linux to windows using some tools?

I searched about cloning or copying weblogic and it's domain, and found 2 ways that I think is the most nearest to my question.我搜索了有关克隆或复制 weblogic 及其域的信息,发现了两种我认为最接近我的问题的方法。 1, packing and unpacking a weblogic domain 2, Creating Extension Templates . 1、 打包和解包 weblogic 域2、 创建扩展模板
There is weblogic 12.2.4 installed on Linux server and I want to coppy it's configuration and domain and create my own instance with exact configuration. Linux 服务器上安装了 weblogic 12.2.4,我想复制它的配置和域,并使用精确的配置创建我自己的实例。 If it's possible, pleas give me solution or some clues and key-word to search more.如果可能,请给我解决方案或一些线索和关键字以进行更多搜索。 And do I need to change some configs by hand or provided tool does everything?我是否需要手动更改一些配置或提供的工具可以完成所有工作?
Is copying domain different from copying weblogic configuration?复制域与复制 weblogic 配置不同吗? Thanks very much.非常感谢。

If you want to create a domain with the same configuration, but on Windows, you should use Weblogic Deploy Tooling .如果要创建具有相同配置但在 Windows 上的域,则应使用Weblogic Deploy Tooling

The first step is to install Oracle Weblogic on your windows machine(s).第一步是在 windows 机器上安装 Oracle Weblogic。

The second step is to use the discoverydomain.sh to introspect the domain, which is running on Linux.第二步是使用discoverydomain.sh对域进行内省,该域在Linux上运行。

The previous step will generate a model in YAML, which represents your Linux domain as code and then you will have to customize it with proper values for Weblogic's user's passwords, data sources, etc.上一步将在 YAML 中生成model ,它代表您的 Linux 域作为代码,然后您必须使用 Weblogic 的用户密码等数据源的正确值对其进行自定义,

Once you have the model ready, you can run createdomain.cmd on Windows to create the domain.准备好 model 后,您可以在 Windows 上运行createdomain.cmd来创建域。 By the way, if your domain is distributed on several machines you will have to run pack and unpack after creating the domain with Weblogic Deploy Tooling because it only works on the node, which will host the AdminServer.顺便说一句,如果您的域分布在多台机器上,则必须在使用 Weblogic 部署工具创建域后运行打包和解包,因为它仅适用于托管 AdminServer 的节点。

Here you have an example about using Weblogic Deploy Tooling with Ansible to create a domain with SOA https://github.com/textanalyticsman/ansible-soa-wldt这里有一个关于使用带有 Ansible 的 Weblogic 部署工具来创建带有 SOA https 的域的示例://github.com/textanalyticsman/ansible-soa-wldt

Yes, it is theoretically possible to copy $DOMAIN_HOME (WebLogic domain) to or from Windows.是的,理论上可以将$DOMAIN_HOME (WebLogic 域)复制到 Windows 或从 Windows 复制。

However, I would NOT copy the $WL_HOME directory.但是,我不会复制$WL_HOME目录。 Here a fresh installation is the only way.在这里,全新安装是唯一的方法。

As you mention the tool recommended by Oracle would be pack and unpack .正如您提到的 Oracle 推荐的工具是packunpack With the assumption, that there is no WebLogic security realm configured.假设没有配置 WebLogic 安全 realm。

Another option would be to create a new domain (preferable with the same name) with the Configuration Wizard and then copy the XML-fragments from the old $DOMAIN_HOME/config/* files in the fresh domain.另一种选择是使用配置向导创建一个新域(最好使用相同的名称),然后从新域中的旧 $DOMAIN_HOME/config/* 文件中复制 XML 片段。 Watch out for the encrypted passwords.注意加密的密码。 Don't mix the encrypted fields in the old a new domain.不要在旧域中混合加密字段。

Another option would to use Windows Subsystem for Linux (WSL2).另一种选择是使用 Linux (WSL2) 的 Windows 子系统。 In this case, you can copy your files 1:1.在这种情况下,您可以 1:1 复制文件。 $JAVA_HOME , $WL_HOME and $DOMAIN_HOME in one go. $JAVA_HOME$WL_HOME$DOMAIN_HOME在一个 go 中。 You WebLogic Server will start without any problems, except some DNS-Names or IP-Addresses issues.您的 WebLogic Server 将毫无问题地启动,除了一些 DNS-Names 或 IP-Addresses 问题。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM