WebLogic Startup Script v2.0

Source: Internet
Author: User
Tags server port

Change the place

1, in the test application for UF NC6, because the NC cluster has the concept of master, non-master node depends on master, so, for this situation, you must first determine that master starts normally, in order to start other nodes.

After testing the project, it is found that sometimes the master port is opened to start other nodes, and sometimes it encounters a master not ready error, so manually increase sleep 20 on the master port.

2, all other servers because there is no dependency, so you can start in parallel, reduce startup time.

3, the use of functions to process the startup process and determine the port opening process, effective less code.

#!/bin/bash#author:wjf#date:2015/05/19#version:2.0# test environment for wls1036 horizontal cluster v_curr_user= ' WhoAmI ' #------------ Actually was and the code installs the user, for example uses the Ufida, the direct "nc63" Changes "the Ufida" on the line. v_start_user=uweblogic#------------user v_admin_url=http://10.10.71.106:9001# to install and start the WebLogic server------------ urlv_dir_domain_bin=/weblogic/oracle/middleware/user_projects/domains/gyhr_domain/bin#------------of the Management Server Start the Bin directory path for the domain v_admin_port=9001#------------weblogic Management Server Port # has started F_is_service_start () {V_is_port_ Depending on whether the service port is open to the decision service Open=0while [${v_is_port_open}-eq 0]dosleep 10v_is_port_open= ' netstat-ano |grep ${1}|wc-l ' done} #启动受管理服务器f_start_ms ( {echo "Start managed server ${1}" CD ${v_dir_domain_bin}nohup./startmanagedweblogic.sh ${1} ${v_admin_url} &f_is_service_ Start ${2}echo "${1} Started" echo ""} #主代码部分 if [${v_curr_user} = ${v_start_user}] then #启动服务代码部分echo " Start the Management Server "CD ${v_dir_domain_bin}nohup./startweblogic.sh &f_is_service_start ${v_admin_port}echo" Start the Management Server complete "echo" #---------------Modify the Custom section (start)------------------F_start_ms Master 8001sleep 20f_start_ms Server1 8002 &f_start_ms server2 80003--------------- Modify custom section (end)-------------------Elseecho "Current user is ${v_curr_user}" echo "recommended to start the service using ${v_start_user}" EC Ho "Please check the current user environment" fi



WebLogic Startup Script v2.0

Related Article

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.