Professional Documents
Culture Documents
RUNNING
RUNNING
(Windows)
$CATALINA_HOME/bin/startup.sh
(Unix)
(3.2) After startup, the default web applications included with Tomcat will be
available by visiting:
http://localhost:8080/
(3.3) Further information about configuring and running Tomcat can be found in
(Windows)
$CATALINA_HOME/bin/shutdown.sh
(Unix)
====================================
Running Tomcat With J2SE Version 1.4
====================================
(1) Obtain the compat package:
(1.1) Download the compat package from the binary download site:
http://tomcat.apache.org
* Or build this package yourself from the source code: see
"BUILDING.txt" in this directory.
(2) Unzip the package in $CATALINA_HOME. It will place the XML
parser APIs and Xerces implementation in the common/endorsed
directory, and the JMX API jar (jmx.jar from Sun) in the bin
directory.
(3) Follow the same directions for starting and stopping the
server as if you were using J2SE 5.0.
==================================================
Advanced Configuration - Multiple Tomcat Instances
==================================================
In many circumstances, it is desirable to have a single copy of a Tomcat
binary distribution shared among multiple users on the same server. To make
this possible, you can pass a "-Dcatalina.base=$CATALINA_BASE" argument when
executing the startup command (see (2)). In this
"-Dcatalina.base=$CATALINA_BASE" argument, replace $CATALINA_BASE with the
directory that contains the files for your 'personal' Tomcat instance.
When you use this "-Dcatalina.base=$CATALINA_BASE" argument, Tomcat will
calculate all relative references for files in the following directories based
on the value of $CATALINA_BASE instead of $CATALINA_HOME:
* conf - Server configuration files (including server.xml)
* logs - Log and output files
* shared - For classes and resources that must be shared across all web
applications
* webapps - Automatically loaded web applications
proxy. If that's the case, make sure the proxy configuration for your
browser knows that you shouldn't be going through the proxy to access the
"localhost".
In Netscape, this is under Edit/Preferences -> Advanced/Proxies, and in
Internet Explorer, Tools -> Internet Options -> Connections -> LAN Settings.