weblogic手工创建简单域的方法(包含节点,集群)

[ENGINE]


#DO NOT CHANGE THIS.


Response File Version=1.0.0.0.0


[GENERIC]


#The oracle home location. This can be an existing Oracle Home or a new Oracle Home


ORACLE_HOME=/u02/bea


#Set this variable value to the Installation Type selected. e.g. WebLogic Server, Coherence, Complete with Examples.


INSTALL_TYPE=WebLogic Server


#Provide the My Oracle Support Username. If you wish to ignore Oracle Configuration Manager configuration provide empty string for user name.


MYORACLESUPPORT_USERNAME=


#Provide the My Oracle Support Password


MYORACLESUPPORT_PASSWORD=<SECURE VALUE>


#Set this to true if you wish to decline the security updates. Setting this to true and providing empty string for My Oracle Support username will ignore the Oracle Configuration Manager configuration


DECLINE_SECURITY_UPDATES=true


#Set this to true if My Oracle Support Password is specified


SECURITY_UPDATES_VIA_MYORACLESUPPORT=false


#Provide the Proxy Host


PROXY_HOST=


#Provide the Proxy Port


PROXY_PORT=


#Provide the Proxy Username


PROXY_USER=


#Provide the Proxy Password


PROXY_PWD=<SECURE VALUE>


#Type String (URL format) Indicates the OCM Repeater URL which should be of the format [scheme[Http/Https]]://[repeater host]:[repeater port]


COLLECTOR_SUPPORTHUB_URL=


 


2、创建Loc文件 oraInst.loc


inventory_loc=/home/weblogic/oraInventory


inst_group=weblogic


然后执行:          



         readTemplate('/data/wls1212/wlserver/common/templates/wls/wls.jar')


cd('Servers/AdminServer')


cmo.setName("testAdminServer")


set('ListenAddress','10.10.15.96')


set('ListenPort',8888)


 


cd('/')


cd("/Security/base_domain/User/weblogic")


cmo.setPassword("weblogic123")


setOption("OverwriteDomain",'true')


setOption('ServerStartMode','prod')


writeDomain('/data/domains/test11_domain')


closeTemplate()


 


readDomain('/data/domains/test11_domain')


 


cd('/')


create('ManagedServer8002','Server')


cd('Server/ManagedServer8002')


set('ListenPort',8002)


set('ListenAddress','10.10.15.96')
set('MaxOpenSockCount',5000)
 


cd('/')


create('ManagedServer8003','Server')


cd('Server/ManagedServer8003')


set('ListenPort',8003)


set('ListenAddress','10.10.15.96')


 


cd('/')


create('ManagedServer8004','Server')


cd('Server/ManagedServer8004')


set('ListenPort',8004)


set('ListenAddress','10.10.15.96')


 


cd('/')


create('ManagedServer8005','Server')


cd('Server/ManagedServer8005')


set('ListenPort',8005)


set('ListenAddress','10.10.15.96')


 


cd('/')


create('ManagedServer8006','Server')


cd('Server/ManagedServer8006')


set('ListenPort',8006)


set('ListenAddress','10.10.15.97')


 


cd('/')


create('ManagedServer8007','Server')


cd('Server/ManagedServer8007')


set('ListenPort',8007)


set('ListenAddress','10.10.15.97')


 


cd('/')


create('xlcpt_Cluster','Cluster')


assign('Server','ManagedServer8002,ManagedServer8003,ManagedServer8004,ManagedServer8005,ManagedServer8006,ManagedServer8007','Cluster','xlcpt_Cluster')


cd('Cluster/xlcpt_Cluster')


set('MulticastAddress','237.0.0.101')


set('MulticastPort', 8050)


set('WeblogicPluginEnabled','true')


 


updateDomain()


closeDomain()


 


exit()


/data/wls1212/wlserver/common/bin/wlst.sh create_testdomain.py



来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/28869493/viewspace-2152706/,如需转载,请注明出处,否则将追究法律责任。

转载于:http://blog.itpub.net/28869493/viewspace-2152706/

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值