Help --- the strange problem encountered by the dual machine-Linux Enterprise Application-Linux server application information. The following is a detailed description. I used two PC servers to connect to an EDI disk array, the REDHAT AS3 U4 operating system and RHEL3-RHCS cluster software. install ORACLE on the array and TOMCAT applications on the two servers. The configurations are the same on the two servers.
After a single ORACLE package is added, you can switch between the two servers. After the TOMCAT application package is added
The package is added to the cluster software. When the dual-host software is started, LINUX will automatically restart, so that the dual-host software fails to start.
TOMCAT is installed in the/usr/ismg directory, and/usr is the mount point of the/dev/hda5 device.
When the cluster software configures the TOMCAT package, the device is/dev/hda5 mount point is/usr file system is ext3 ip address is
192.168.189.127 255.255.255.0 192.168.189.255
The script file is/usr/ismg/support/tomcat5028/bin/tomcat5028.sh.
#! /Bin/sh
#
# Cluster service script to start stop and check status of tomcat
#
Cd/usr/ismg/support/tomcat5028/bin
Case $1 in
Start)
Su-ismg-c/usr/ismg/support/tomcat5028/bin/startup. sh
;;
Stop)
Su-ismg-c/usr/ismg/support/tomcat5028/bin/shutdown. sh
;;
Esac
The startup script is/usr/ismg/support/tomcat5028/bin/startup. sh.
#! /Bin/sh
#-----------------------------------------------------------------------------
# Start Script for the CATALINA Server
#
# $ Id: startup. sh, v 1.3 2002/08/04 18:19:43 patrickl Exp $
#-----------------------------------------------------------------------------
# Resolve links-$0 may be a softlink
PRG = "$0"
While [-h "$ PRG"]; do
Ls = 'LS-ld "$ PRG "'
Link = 'expr "$ ls": '. *-> \ (. * \) $''
If expr "$ link": '. */. *'>/dev/null; then
PRG = "$ link"
Else
PRG = 'dirname "$ PRG" '/"$ link"
Fi
Done
PRGDIR = 'dirname "$ PRG "'
EXECUTABLE = catalina. sh
# Check that target executable exists
If [! -X "$ PRGDIR"/"$ EXECUTABLE"]; then
Echo "Cannot find $ PRGDIR/$ EXECUTABLE"
Echo "This file is needed to run this program"
Exit 1
Fi
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