进入路径
1
cd /weblogic/oracle/middleware/wlserver/common/bin
静默创建域
1
./config.sh -mode=silent -silent_script=/home/app_admin/weblogic_ins/create_domain.rsp -logfile=/home/app_admin/weblogic/create_domain.log
create_domain.rsp文件内容
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
read template from "/home/app_admin/weblogic/Oracle/Middleware/wlserver/common/templates/wls/wls.jar";
set JavaHome "/home/app_admin/jdk1.8.0_144";
set ServerStartMode "prod";
find Server "AdminServer" as AdminServer;
set AdminServer.ListenAddress "";
set AdminServer.ListenPort "7001";
//set AdminServer.SSL.Enabled "true";
//set AdminServer.SSL.ListenPort "7002";
//We can directly create a new managed server.
create Server "VM-YDYWJYSL01" as BASE;
//set BASE.ListenAddress "";
//set BASE.ListenPort "8003";
//set BASE.SSL.Enabled "true";
//set BASE.SSL.ListenPort "8004″;
//Create Machine
//create Machine "base" as Machinename;
//use templates default weblogic user
find User "weblogic" as u1;
set u1.password "weblogic123";
//create a new user
//create User "weblogic" as u1;
//set u1.password "weblogic123";
write domain to "/home/app_admin/weblogic/Oracle/Middleware/user_project/domains/base_domain/";
// The domain name will be "demo-domain"
close template;
注意
- ServerStartMode,dev为开发模式,prod为生产模式
- AdminServer.ListenAddress为空默认是本机IP
- SSL端口7002根据实际选择打开还是关闭
- Machinename是主机名