Weblogic startup scripts in Linux and Unix background

Source: Internet
Author: User
Article Title: Weblogic background STARTUP script in Linux and Unix. Linux is a technology channel of the IT lab in China. Some basic categories such as desktop applications, Linux system management, kernel research, embedded systems, and open source are included in practical applications. We are likely to use the SSL Port as the Port for console login, the default startup script does not have any problems, but the service script is disabled using WLST (Weblogic Scripting Tool), and the default logon script does not use SSL, therefore, you must modify the original script.
 
In fact, after the domain is automatically generated, these scripts have been automatically created to the corresponding directory. We only need to compile a simple script for calling. However, sometimes you need to use the SSL Console port. In this case, you need to modify the automatically generated closing service script.
 
1) Clear the obstacles to Automatic startup
 
It should be noted that weblogic production mode is generally used on the production machine, and the Server established according to the production mode needs to enter the management user name and password at startup. If you want to start the instance directly without being disturbed by the user name and password, follow these steps.
 
Create the file boot. properties in the root directory of the domain to be started. The content is the user name and password for controlling the domain. Directly write the file in plain text as follows:
 
Username = User Name
 
Password = Password
 
Do not worry about password leakage. After Weblogic is started for the first time, the system automatically encrypts the relevant content.
 
2) write scripts for weblogic to run in the background
 
Use the $ operator to run the weblogic process directly in the background. The script content is as follows.
 
#! /Bin/sh

OPT _ = $1

Case "$ OPT _" in

Start)

Export LANG = zh_CN.GB18030

/Bin/echo "$0: (start )"

Cd/home/weblogic/bea/user_projects/domains/idquery_domain/

./StartWebLogic. sh &

;;

Stop)

/Bin/echo "$0: (stop )"

Cd/home/weblogic/bea/user_projects/domains/idquery_domain/bin/

./StopWebLogic. sh &

;;

*)

/Bin/echo''

/Bin/echo "Usage: $0 [start | stop]"

/Bin/echo"

Invalid argument ==>;\ "$ {OPT _}\""

/Bin/echo''

;;

Esac

Exit 0


 
The script directly calls the startup and stop scripts automatically generated when weblogic creates a domain. Although weblogic8 and weblogic9 may have different directories, the script names are generally the same.
 
In use, assume that we store the script as weblogic. sh and directly use the script. /Webloigc. sh start to start the service. /Weblogic. sh stop the service.
 
3) process SSL connections
 
In practical applications, we are likely to use the SSL Port as the Port for logging on to the console. By default, there is no problem with the startup script, however, since the service script is disabled using WLST (Weblogic Scripting Tool), the default logon script for closing the service script does not use SSL, so you need to modify the original script.
 
Open the stopWeblogic. sh script and find the following places.
 
Set ADMIN_URL = t3: // localhost: 7001
 
If SSL is used, we need to use the t3s protocol and change it
 
Set ADMIN_URL = t3s: // localhost: 7001
 
If you want to avoid entering the user name and password, you can also modify the corresponding code in this script.
 
The above is a simple weblogic background STARTUP script.
 

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.