weblogic 服务器没有与之相关联的计算机,weblogic 12c 一键静默建域、集群、受管,计算机以及添加受管到集群...

本文详细介绍了如何使用静默方式创建WebLogic域、集群和服务器,包括设置监听端口、SSL、集群名、服务器名,以及添加受管服务器和设置管理员密码的过程。通过示例脚本展示配置步骤,并处理可能遇到的问题。
摘要由CSDN通过智能技术生成

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 ~]$

如果有报错,或者到某个阶段有问题,会立刻终止。

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值