标签:weblogic 12c 一键部署域 集群 受管和计算机
1.静默安装(参照以往文章)
2.静默建域、集群、受管,计算机以及添加受管到集群
编写响应文件,内容包括主管端口,ssl端口,集群名字,受管名字,计算机名字,以及受管添加到哪个集群并且设置主管密码
[weblogic@app-LT-179 ~]$ cat creat.rsp
read template from "/home/weblogic/Oracle/Middleware/Oracle_Home/wlserver/common/templates/wls/wls.jar";
set JavaHome "/usr/java/jdk1.8.0_141";
set ServerStartMode "dev";
find Server "AdminServer" as AdminServer;
set AdminServer.ListenAddress "";
set AdminServer.ListenPort "7001";
set AdminServer.SSL.Enabled "true";
set AdminServer.SSL.ListenPort "7002";
create Cluster "Cluster-0" as Clustername1;
create Machine "machine-1" as Machinename1;
create Server "Server-1" as BASE;
set BASE.ListenAddress "";
set BASE.ListenPort "8001";
set BASE.cluster "Cluster-0";
set BASE.machine "machine-1";
create Server "Server-2" as BASE2;
set BASE2.ListenAddress "";
set BASE2.ListenPort "8002";
set BASE.cluster "Cluster-0";
set BASE.machine "machine-1";
find User "weblogic" as weblogic;
set weblogic.password "weblogic123";
write domain to "/home/weblogic/domains/jydomains";
close template;
[weblogic@app-LT-179 ~]$
执行后结果,会出现如下内容:
[weblogic@app-LT-179 ~]$ /home/weblogic/Oracle/Middleware/Oracle_Home/wlserver/common/bin/config.sh -mode=silent -silent_script=/home/weblogic/creat.rsp
WARNING: This is a deprecated script. Please invoke the config.sh script under oracle_common/common/bin.
<< read template from "/home/weblogic/Oracle/Middleware/Oracle_Home/wlserver/common/templates/wls/wls.jar"
>> succeed: read template from "/home/weblogic/Oracle/Middleware/Oracle_Home/wlserver/common/templates/wls/wls.jar"
<< set config option JavaHome to "/usr/java/jdk1.8.0_141"
>> succeed: set config option JavaHome to "/usr/java/jdk1.8.0_141"
<< set config option ServerStartMode to "dev"
>> succeed: set config option ServerStartMode to "dev"
<< find Server "AdminServer" as AdminServer
>> succeed: find Server "AdminServer" as AdminServer
<< set AdminServer attribute ListenAddress to ""
>> succeed: set AdminServer attribute ListenAddress to ""
<< set AdminServer attribute ListenPort to "7001"
>> succeed: set AdminServer attribute ListenPort to "7001"
<< set AdminServer attribute SSL!Enabled to "true"
>> succeed: set AdminServer attribute SSL!Enabled to "true"
<< set AdminServer attribute SSL!ListenPort to "7002"
>> succeed: set AdminServer attribute SSL!ListenPort to "7002"
<< create Cluster "Cluster-0" as Clustername1
>> succeed: create Cluster "Cluster-0" as Clustername1
<< create Machine "machine-1" as Machinename1
>> succeed: create Machine "machine-1" as Machinename1
<< create Server "Server-1" as BASE
>> succeed: create Server "Server-1" as BASE
<< set BASE attribute ListenAddress to ""
>> succeed: set BASE attribute ListenAddress to ""
<< set BASE attribute ListenPort to "8001"
>> succeed: set BASE attribute ListenPort to "8001"
<< set BASE attribute Cluster to "Cluster-0"
>> succeed: set BASE attribute Cluster to "Cluster-0"
<< set BASE attribute Machine to "machine-1"
>> succeed: set BASE attribute Machine to "machine-1"
<< create Server "Server-2" as BASE2
>> succeed: create Server "Server-2" as BASE2
<< set BASE2 attribute ListenAddress to ""
>> succeed: set BASE2 attribute ListenAddress to ""
<< set BASE2 attribute ListenPort to "8002"
>> succeed: set BASE2 attribute ListenPort to "8002"
<< set BASE attribute Cluster to "Cluster-0"
>> succeed: set BASE attribute Cluster to "Cluster-0"
<< set BASE attribute Machine to "machine-1"
>> succeed: set BASE attribute Machine to "machine-1"
<< find User "weblogic" as weblogic
>> succeed: find User "weblogic" as weblogic
<< set weblogic attribute Password to "********"
>> succeed: set weblogic attribute Password to "********"
<< write Domain to "/home/weblogic/domains/jydomains"
..................................................
>> succeed: write Domain to "/home/weblogic/domains/jydomains"
<< close template
>> succeed: close template
[weblogic@app-LT-179 ~]$
如果有报错,或者到某个阶段有问题,会立刻终止。
本文出自 “linux_oracle” 博客,请务必保留此出处http://pankuo.blog.51cto.com/8651697/1980437
weblogic 12c 一键静默建域、集群、受管,计算机以及添加受管到集群
标签:weblogic 12c 一键部署域 集群 受管和计算机
原文地址:http://pankuo.blog.51cto.com/8651697/1980437