// Set the variable
# vi ~ / .bash_profile
// configuration
Java_Home = / OPT / BEA / JDK141_05
ClassPath = $ java_home / lib: $ java_home / jre / lib
Tomcat_home = / usr / local / Tomcat
Catalina_home = $ TOMCAT_HOME
PATH = $ PATH: $ HOME / BIN: $ java_home / jre / bin: $ java_home / bin
Bash_env = $ home / .bashrc
Username = "root"
EXPORT Username Bash_ENV PATH JAVA_HOME CLASSPATH CATALINA_HOME
//carried out
#. ~ / .bash_profile
// Test Java
# java -version
// Start Tomcat
# $ Tomcat_home / bin / startup.sh
// Fusion Apache download
http://apache.linuxforum.net/dist/jakarta/tomcat-4/v4.1.30/src/jakarta-tomcat-connectors
/ / Need to install httpd-deb package
// Add Service
#! / bin / bash
#
# Tomcat Starts Tomcat Java Server.
#
#
# ChkConfig: 345 88 12
# Description: Tomcat is The Server for Java Servlet Applications.
### Begin Init Info
# Province: $ TOMCAT
### End Init INFO
# Source Function Library.
. /etc/init.d/functions
[-f /Home/tomcat/tcstart.sh] || exit 0
[-f /Home/tomcat/tcstop.sh] || exit 0
Retval = 0
Umask 077
START () {
Echo -n $ "Starting Tomcat Java Server:"
Daemon Su -c /Home/tomcat/tcstart.sh Tomcat
echo
Return $ RetVal
}
STOP () {
Echo -n $ "Shutting Down Tomcat Java Server:"
Daemon Su -c /Home/tomcat/tcstop.sh Tomcat
echo
Return $ RetVal
}
RESTART () {
STOP
Start
}
Case "$ 1" in
START)
Start
;
STOP)
STOP
;
Restart | Reload)
RESTART
;
*)
Echo $ "Usage: $ 0 {start | stop | restart}"
EXIT 1
ESAC
EXIT $?
?????????????
# cd webapp
# ./support/buildconf.sh
# ./configure -with-apxs
# Make
# cp apache-2.0 / mod_webapp.so / usr / lib / httpd / modules /
# rm -rf directory
// Generate sub-configuration files Webapp.conf in conf.d directory
# vi webapp.conf
LoadModule WebApp_Module Modules / Mod_Webapp.so
ServerName Localhost: 8008
WebAppConnection WarpConnection Warp localhost: 8008WebappDeploy Examples WarpConnection / Examples
// Detect syntax error
# httpd -t
// Configure Tomcat
# vi $ Tomcat_Home / conf / server.xml
Port = "8008" MINPROCESSORS = "5" maxprocessors = "75" Enablelookups = "true" AppBase = "WebApps" Acceptcount = "10" debug = "0" /> TimeStamp = "true" /> Engine> Service> / / Restart the service. If there is any problem, please send an email: webmaster@bcxy.com