weblogic静默方式创建域

创建域目录:mkdir -p /home/weblogic/Oracle/Middleware/user_projects/domains/base_domain/

创建文件: create_domain.rsp

read template from "/home/weblogic/Oracle/Middleware/wlserver/common/templates/wls/wls.jar";
 
set JavaHome "/usr/local/jdk1.7"; 
set ServerStartMode "dev"; 
 
find Server "AdminServer" as AdminServer;
set AdminServer.ListenAddress "";
set AdminServer.ListenPort "8001";
set AdminServer.SSL.Enabled "true";
set AdminServer.SSL.ListenPort "8002";
 
//We can directly create a new managed server.
create Server "base" 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 "weblogic2" as u2;
set u2.password "weblogic123";
 
write domain to "/home/weblogic/Oracle/Middleware/user_projects/domains/base_domain/"; 
 
// The domain name will be "demo-domain"
 
close template;
cd /home/weblogic/Oracle/Middleware/wlserver/common/bin
./config.sh -mode=silent -silent_script=/home/weblogic/create_domain.rsp -logfile=/home/weblogic/create_domain.log

 

文章来源: weblogic静默方式创建域

人吐槽 人点赞

猜你喜欢

发表评论

用户名: 密码:
验证码: 匿名发表

你可以使用这些语言

查看评论:weblogic静默方式创建域