The creation of nodes and clusters in actual combat weblogic clusters

Source: Internet
Author: User
Tags rsync

First, start WebLogic, access the console

After the WebLogic domain creation is complete, you can start it next, in the following steps:

$ cd/app/sinova/domains/base_domain/bin$. /startweblogic. SH

Follow the prompts to enter the user name and password (weblogic,weblogic123) that you set when you created domain.

Ii. Creating nodes and clusters

1. Open Browser access: Http://10.70.52.11:7001/console

2, enter the user name password login

3. Creating nodes and clusters

Click "Lock and edit", "Environment", "Server"

Click New to create nodes and clusters

This cluster node and port distribution is as follows

10.70.50.11 9000~9009

10.70.50.12 9000~9009

10.70.50.13 9000~9009

10.70.50.14 9000~9009

node and cluster creation completed as follows:

4. Enable authentication files for the Management Server and the managed server

4.1. Configuration Management Server (adminserver) no password start

$ cd/app/sinova/domains/base_domain/servers/mkdir  security$ CD security/VI  boot.properties #添加如下内容username=Weblogicpassword=weblogic123

4.2, configure the Management Server (each node) no password to start

$ cd/app/sinova/domains/base_domain/vi startmanagedweblogic. SH #找到如下两行, in rows 45 and 48 wls_user= "wls_pw="" modified to: wls_user="  WebLogic"wls_pw="weblogic123"

5. Create a startup (or restart) script for the Management Server and the managed server, which can then be restarted by scripting the nodes in the cluster

AdminServer Restart Script:

$CatRestart-admin.SH #!/bin/bash#/app/sinova/logs/Console This directory holds the console log, you need to manually create a date=`Date+%y%m%d ' User_mem_args="-xms1024m-xmx1024m-xx:maxpermsize=256m"Export User_mem_argsPS-ef |awk '/[a]dminserver/{print $}'|Xargs Kill-9>/dev/NULL 2>&1  RM-fr/app/sinova/domains/base_domain/servers/adminserver/tmp/*nohup/app/sinova/domains/base_domain/bin/startweblogic.sh >/app/sinova/logs/console/admin-${date}.log 2 >&1 &

Restart scripts for each node (requires a restart script for each node)

$CatRestart_node1.SH #!/bin/bashdate=`Date+%y%m%d ' Wls_node="Server-0"#其它节点脚本修改这个名称即可USER_MEM_ARGS="-xms1024m-xmx2048m-xx:maxpermsize=512m"java_options="-dusesunhttphandler=true"Serviceip=10.70.52.11export User_mem_args java_options wls_node ServiceipPS-ef |grepjava |grepWebLogic |grep-W${wls_node} |awk '{print $}'|Xargs Kill-9>/dev/NULL 2>&1RM-rf/app/sinova/domains/base_domain/servers/${wls_node}/tmp/*sleep 1nohup/app/sinova/domains/base_domain/bin/startmanagedweblogic.sh ${wls_node} http://${ServiceIP}:7001/ >/app/sinova/logs/console/${wls_node}-${date}.log 2>&1 &

6, copy the Oracle, domains these two directories to 10.70.52.12-14 3 servers

 $ rsync-avz/app/sinova/domains 10.70 . 52.12 :/app/sinova/$ rsync -avz/app/ Sinova/oracle 10.70 . 52.12 :/app/sinova/$ rsync -avz/app/ Sinova/domains 10.70 . 52.13 :/app/sinova/$ rsync -avz/app/ Sinova/oracle 10.70 . 52.13 :/app/sinova/$ rsync -avz/app/ Sinova/domains 10.70 . 52.14 :/app/sinova/$ rsync -avz/app/ Sinova/oracle 10.70 . 52.14 :/app/sinova/

7. Execute script to start AdminServer and all nodes in the cluster, after starting the effect as follows:

The creation of nodes and clusters in actual combat weblogic clusters

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.