$Id: RUNNING.txt 354430 2005-12-06 13:44:26Z yoavs $
============================================
Running The Tomcat 5.5 Servlet/JSP Container
============================================
Out of the box, Tomcat 5.5 requires the Java 2 Standard Edition Runtime
Environment (JRE) version 5.0 or later. However, you can also run Tomcat
5.5 on earlier versions of the JRE, as detailed below.
=============================
Running With JRE 5.0 Or Later
=============================
(1) Download and Install the J2SE Runtime Environment (JRE)
(1.1) Download the Java 2 Standard Edition Runtime Environment (JRE),
release version 5.0 or later, from http://java.sun.com/j2se.
(1.2) Install the JRE according to the instructions included with the
release.
(1.3) Set an environment variable named JAVA_HOME to the pathname of
the directory into which you installed the JRE, e.g. c:\j2sdk5.0
or /usr/local/java/j2sdk5.0.
(2) Download and Install the Tomcat Binary Distribution
NOTE: As an alternative to downloading a binary distribution, you can create
your own from the Tomcat source repository, as described in "BUILDING.txt".
If you do this, the value to use for "${catalina.home}" will be the "dist"
subdirectory of your source distribution.
(2.1) Download a binary distribution of Tomcat from:
http://tomcat.apache.org
(2.2) Unpack the binary distribution into a convenient location so that the
distribution resides in its own directory (conventionally named
"apache-tomcat-[version]"). For the purposes of the remainder of this document,
the symbolic name "$CATALINA_HOME" is used to refer to the full
pathname of the release directory.
(3) Start Up Tomcat
(3.1) Tomcat can be started by executing the following commands:
$CATALINA_HOME\bin\startup.bat (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
the documentation included here, as well as on the Tomcat web site:
http://tomcat.apache.org
(4) Shut Down Tomcat
(4.1) Tomcat can be shut down by executing the following command:
$CATALINA_HOME\bin\shutdown (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
* work - Temporary working directories for web applications
* temp - Directory used by the JVM for temporary files (java.io.tmpdir)
If you do not pass the "-Dcatalina.base=$CATALINA_BASE" argument to the
startup command, $CATALINA_BASE will default to the same value as $CATALINA_HOME,
which means that the same directory is used for all relative path resolutions.
The administration and manager web applications, which are defined in the
$CATALINA_BASE/conf/Catalina/localhost/admin.xml
and
$CATALINA_BASE/conf/Catalina/localhost/manager.xml files, will
not run in that configuration, unless either:
- The path specified in the docBase attribute of the Context element is made
absolute, and replaced respectively by $CATALINA_HOME/server/webapps/admin
and $CATALINA_HOME/server/webapps/manager
- Both web applications are copied or moved to $CATALINA_BASE,
and the path specified in the docBase attribute of the Context
element is modified appropriately.
- Both web applications are disabled by removing
$CATALINA_BASE/conf/Catalina/localhost/admin.xml
and
$CATALINA_BASE/conf/Catalina/localhost/manager.xml.
================
Troubleshooting
================
There are only really 3 things likely to go wrong during the stand-alone
Tomcat install:
(1) The most common hiccup is when another web server (or any process for that
matter) has laid claim to port 8080. This is the default HTTP port that
Tomcat attempts to bind to at startup. To change this, open the file:
$CATALINA_HOME/conf/server.xml
and search for '8080'. Change it to a port that isn't in use, and is
greater than 1024, as ports less than or equal to 1024 require superuser
access to bind under UNIX.
Restart Tomcat and you're in business. Be sure that you replace the "8080"
in the URL you're using to access Tomcat. For example, if you change the
port to 1977, you would request the URL http://localhost:1977/ in your browser.
(2) An "out of environment space" error when running the batch files in
Windows 95, 98, or ME operating systems.
Right-click on the STARTUP.BAT and SHUTDOWN.BAT files. Click on
"Properties", then on the "Memory" tab. For the "Initial environment" field,
enter in something like 4096.
After you click apply, Windows will create shortcuts which you can use
to start and stop the container.
(3) The 'localhost' machine isn't found. This could happen if you're behind a
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.
没有合适的资源?快使用搜索试试~ 我知道了~
apache-tomcat-5.5.23.
共102个文件
jar:36个
gif:18个
xml:15个
5星 · 超过95%的资源 需积分: 10 23 下载量 141 浏览量
2009-08-10
23:35:12
上传
评论 1
收藏 4.28MB RAR 举报
温馨提示
apache-tomcat-5.5.23 MyEclipse专用服务免费版
资源推荐
资源详情
资源评论
收起资源包目录
apache-tomcat-5.5.23. (102个子文件)
catalina.bat 9KB
service.bat 4KB
setclasspath.bat 2KB
tool-wrapper.bat 2KB
digest.bat 1KB
version.bat 1KB
startup.bat 1KB
shutdown.bat 1KB
cpappend.bat 509B
tomcat5w.exe 96KB
tomcat5.exe 52KB
asf-logo.gif 7KB
asf-logo.gif 7KB
tomcat.gif 2KB
tomcat.gif 2KB
add.gif 1KB
add.gif 1KB
update.gif 627B
update.gif 627B
design.gif 608B
design.gif 608B
code.gif 394B
code.gif 394B
fix.gif 345B
fix.gif 345B
docs.gif 261B
docs.gif 261B
void.gif 43B
void.gif 43B
tomcat-native.tar.gz 169KB
jsvc.tar.gz 73KB
manager-howto.html 95KB
html-manager-howto.html 39KB
jasper-compiler-jdt.jar 1.16MB
catalina.jar 636KB
jasper-compiler.jar 399KB
tomcat-util.jar 251KB
catalina-cluster.jar 211KB
naming-factory-dbcp.jar 160KB
tomcat-ajp.jar 146KB
catalina-optional.jar 112KB
commons-el.jar 110KB
commons-modeler-2.0.jar 104KB
servlet-api.jar 97KB
tomcat-http.jar 86KB
jasper-runtime.jar 75KB
catalina-storeconfig.jar 63KB
jsp-api.jar 50KB
naming-resources.jar 47KB
catalina-manager.jar 46KB
tomcat-i18n-en.jar 39KB
tomcat-i18n-ja.jar 35KB
tomcat-i18n-es.jar 33KB
naming-factory.jar 31KB
tomcat-i18n-fr.jar 29KB
tomcat-jkstatus-ant.jar 29KB
catalina-ant.jar 26KB
commons-logging-api.jar 26KB
tomcat-apr.jar 25KB
bootstrap.jar 23KB
catalina-ant-jmx.jar 23KB
commons-fileupload-1.0.jar 22KB
servlets-webdav.jar 22KB
tomcat-coyote.jar 19KB
servlets-default.jar 18KB
catalina-host-manager.jar 14KB
tomcat-juli.jar 13KB
commons-daemon.jar 9KB
servlets-invoker.jar 6KB
LICENSE 11KB
NOTICE 704B
catalina.policy 7KB
catalina.properties 3KB
logging.properties 3KB
RELEASE-NOTES 7KB
servlets-ssi.renametojar 52KB
servlets-cgi.renametojar 20KB
catalina.sh 12KB
setclasspath.sh 3KB
tool-wrapper.sh 2KB
startup.sh 1KB
digest.sh 841B
version.sh 784B
shutdown.sh 780B
RUNNING.txt 7KB
web.xml 49KB
server.xml 19KB
web.xml 7KB
web.xml 3KB
jmxaccessor-tasks.xml 1KB
catalina-tasks.xml 968B
jkstatus-tasks.xml 899B
server-minimal.xml 876B
manager.xml 469B
manager.xml 469B
context.xml 340B
tomcat-users.xml 318B
host-manager.xml 310B
host-manager.xml 310B
manager.xml 295B
共 102 条
- 1
- 2
资源评论
- 祥瑞阳光2014-11-19蛮好的,对我很有用!
- pandancne2012-03-06免安装版本,谢谢
灵犀Sword
- 粉丝: 20
- 资源: 7
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功