1:创建域
(1)节点一执行
export MV_HOME=/home/wzh/Oracle/Middleware export WL_HOME=$MV_HOME/wlserver_10.3 export CONFIG_JVM_ARGS=-Djava.security.egd=file:/dev/./urandom mkdir -p $MV_HOME/user_projects/domains
(2)进入wlst控制台
$WL_HOME/common/bin/wlst.sh readTemplate('/home/wzh/Oracle/Middleware/wlserver_10.3/common/templates/domains/wls.jar'); set('AdminServerName','ydbgAdminServer'); set('ProductionModeEnabled','true'); set('Name','ydbgDomain'); cd('/Server/AdminServer'); set('ListenAddress','192.168.0.133'); set('Name','ydbgAdminServer'); set('ListenPort',9403); cd('/'); create('ydbgServer1','Server'); cd('/Server/ydbgServer1'); set('ListenAddress','192.168.0.133'); set('ListenPort',9401); writeTemplate('/home/wzh/Oracle/Middleware/wlserver_10.3/common/templates/domains/ydbg.jar'); closeTemplate(); createDomain('/home/wzh/Oracle/Middleware/wlserver_10.3/common/templates/domains/ydbg.jar','/home/wzh/Oracle/Middleware/user_projects/domains/ydbgDomain','weblogic','weblogic1'); exit()
(3)进行配置
export DOMAIN_HOME=/home/wzh/Oracle/Middleware/user_projects/domains/ydbgDomain mkdir -p $DOMAIN_HOME/servers/ydbgServer1/security touch $DOMAIN_HOME/servers/ydbgServer1/security/boot.properties echo 'username=weblogic'>>$DOMAIN_HOME/servers/ydbgServer1/security/boot.properties echo 'password=weblogic1'>>$DOMAIN_HOME/servers/ydbgServer1/security/boot.properties touch $DOMAIN_HOME/bin/startydbgServer1.sh echo 'export USER_MEM_ARGS="-Xms512m -Xmx512m -XX:PermSize=512m -XX:MaxPermSize=512m"'>>$DOMAIN_HOME/bin/startydbgServer1.sh echo 'export JAVA_OPTIONS="-Djava.security.egd=file:/dev/./urandom"'>>$DOMAIN_HOME/bin/startydbgServer1.sh echo 'export DOMAIN_PRODUCTION_MODE=true'>>$DOMAIN_HOME/bin/startydbgServer1.sh echo 'nohup ./startManagedWebLogic.sh ydbgServer1 http://192.168.0.133:9403 >ydbg1.log 2>&1 &'>>$DOMAIN_HOME/bin/startydbgServer1.sh echo 'sleep 1'>>$DOMAIN_HOME/bin/startydbgServer1.sh echo 'tail -f ydbg1.log'>>$DOMAIN_HOME/bin/startydbgServer1.sh chmod u+x $DOMAIN_HOME/bin/startydbgServer1.sh
2:启动服务
(1)启动管理
export DOMAIN_HOME=/home/wzh/Oracle/Middleware/user_projects/domains/ydbgDomain cd $DOMAIN_HOME nohup ./startWebLogic.sh & tail -f nohup.out
(2)启动节点1被管服务
export DOMAIN_HOME=/home/wzh/Oracle/Middleware/user_projects/domains/ydbgDomain cd $DOMAIN_HOME/bin ./startydbgServer1.sh