In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-02 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/02 Report--
1. There are two different versions of tomcat startup script:
#! / bin/sh
# chmod + x
# chkconfig-add
# tomcat-amazon
#
# chkconfig:-98 02
#
Export JAVA_HOME=/usr/local/java/jdk1.6.0_45
Suffix=amazon
Prog=tomcat-$suffix
TOMCAT_HOME=/usr/local/tomcat-7.0.54Ajob
Export $JAVA_HOME
Start_tomcat=$TOMCAT_HOME/bin/startup.sh
Stop_tomcat=$TOMCAT_HOME/bin/shutdown.sh
Lockfile=/var/lock/subsys/$prog
Start () {
Echo-n "Starting tomcat-amazon:"
${start_tomcat}
Retval=$?
Echo
[$retval-eq 0] & & touch $lockfile
Return $retval
}
Stop () {
Echo-n "Shutdown tomcat-amazon"
${stop_tomcat}
Retval=$?
Echo
[$retval-eq 0] & & rm-f $lockfile
Return $retval
}
Restart () {
Stop
Sleep 1
Start
}
Reload () {
Restart
}
# how we were called
Case "$1" in
Start)
Start
Stop)
Stop
Restart)
Restart
Reload)
Reload
*)
Echo "Usage: $0 {start | stop | restart | reload | status}"
Exit 2
Esac
Exit 0
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.