================================================================================
Licensed to the Apache Software Foundation (ASF) under one or more
contributor license agreements. See the NOTICE file distributed with
this work for additional information regarding copyright ownership.
The ASF licenses this file to You under the Apache License, Version 2.0
(the "License"); you may not use this file except in compliance with
the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
================================================================================
===================================================
Running The Apache Tomcat 8.5 Servlet/JSP Container
===================================================
Apache Tomcat 8.5 requires a Java Standard Edition Runtime
Environment (JRE) version 7 or later.
=============================
Running With JRE 7 Or Later
=============================
(1) Download and Install a Java SE Runtime Environment (JRE)
(1.1) Download a Java SE Runtime Environment (JRE),
release version 7 or later, from
http://www.oracle.com/technetwork/java/javase/downloads/index.html
(1.2) Install the JRE according to the instructions included with the
release.
You may also use a full Java Development Kit (JDK) rather than just
a JRE.
(2) Download and Install Apache Tomcat
(2.1) Download a binary distribution of Tomcat from:
http://tomcat.apache.org/
(2.2) Unpack the binary distribution so that it resides in its own
directory (conventionally named "apache-tomcat-[version]").
For the purposes of the remainder of this document, the name
"CATALINA_HOME" is used to refer to the full pathname of that
directory.
NOTE: As an alternative to downloading a binary distribution, you can
create your own from the Tomcat source code, as described in
"BUILDING.txt". You can either
a) Do the full "release" build and find the created distribution in the
"output/release" directory and then proceed with unpacking as above, or
b) Do a simple build and use the "output/build" directory as
"CATALINA_HOME". Be warned that there are some differences between the
contents of the "output/build" directory and a full "release"
distribution.
(3) Configure Environment Variables
Tomcat is a Java application and does not use environment variables directly.
Environment variables are used by the Tomcat startup scripts. The scripts use
the environment variables to prepare the command that starts Tomcat.
(3.1) Set CATALINA_HOME (required) and CATALINA_BASE (optional)
The CATALINA_HOME environment variable should be set to the location of the
root directory of the "binary" distribution of Tomcat.
The Tomcat startup scripts have some logic to set this variable
automatically if it is absent, based on the location of the startup script
in *nix and on the current directory in Windows. That logic might not work
in all circumstances, so setting the variable explicitly is recommended.
The CATALINA_BASE environment variable specifies location of the root
directory of the "active configuration" of Tomcat. It is optional. It
defaults to be equal to CATALINA_HOME.
Using distinct values for the CATALINA_HOME and CATALINA_BASE variables is
recommended to simplify further upgrades and maintenance. It is documented
in the "Multiple Tomcat Instances" section below.
(3.2) Set JRE_HOME or JAVA_HOME (required)
These variables are used to specify location of a Java Runtime
Environment or of a Java Development Kit that is used to start Tomcat.
The JRE_HOME variable is used to specify location of a JRE. The JAVA_HOME
variable is used to specify location of a JDK.
Using JAVA_HOME provides access to certain additional startup options that
are not allowed when JRE_HOME is used.
If both JRE_HOME and JAVA_HOME are specified, JRE_HOME is used.
The recommended place to specify these variables is a "setenv" script. See
below.
(3.3) Other variables (optional)
Other environment variables exist, besides the four described above.
See the comments at the top of catalina.bat or catalina.sh scripts for
the list and a description of each of them.
One frequently used variable is CATALINA_OPTS. It allows specification of
additional options for the java command that starts Tomcat.
See the Java documentation for the options that affect the Java Runtime
Environment.
See the "System Properties" page in the Tomcat Configuration Reference for
the system properties that are specific to Tomcat.
A similar variable is JAVA_OPTS. It is used less frequently. It allows
specification of options that are used both to start and to stop Tomcat as well
as for other commands.
Note: Do not use JAVA_OPTS to specify memory limits. You do not need much
memory for a small process that is used to stop Tomcat. Those settings
belong to CATALINA_OPTS.
Another frequently used variable is CATALINA_PID (on *nix only). It
specifies the location of the file where process id of the forked Tomcat
java process will be written. This setting is optional. It will enable the
following features:
* better protection against duplicate start attempts and
* allows forceful termination of Tomcat process when it does not react to
the standard shutdown command.
(3.4) Using the "setenv" script (optional, recommended)
Apart from CATALINA_HOME and CATALINA_BASE, all environment variables can
be specified in the "setenv" script. The script is placed either into
CATALINA_BASE/bin or into CATALINA_HOME/bin directory and is named
setenv.bat (on Windows) or setenv.sh (on *nix). The file has to be
readable.
By default the setenv script file is absent. If the script file is present
both in CATALINA_BASE and in CATALINA_HOME, the one in CATALINA_BASE is
preferred.
For example, to configure the JRE_HOME and CATALINA_PID variables you can
create the following script file:
On Windows, %CATALINA_BASE%\bin\setenv.bat:
set "JRE_HOME=%ProgramFiles%\Java\jre7"
exit /b 0
On *nix, $CATALINA_BASE/bin/setenv.sh:
JRE_HOME=/usr/java/latest
CATALINA_PID="$CATALINA_BASE/tomcat.pid"
The CATALINA_HOME and CATALINA_BASE variables cannot be configured in the
setenv script, because they are used to locate that file.
All the environment variables described here and the "setenv" script are
used only if you use the standard scripts to launch Tomcat. For example, if
you have installed Tomcat as a service on Windows, the service wrapper
launches Java directly and does not use the script files.
(4) Start Up Tomcat
(4.1) Tomcat can be started by executing one of the following commands:
On Windows:
%CATALINA_HOME%\bin\startup.bat
or
%CATALINA_HOME%\bin\catalina.bat start
On *nix:
$CATALINA_HOME/bin/startup.sh
or
$CATALINA_HOME/bin/catalina.sh start
(4.2) After startup, the default web applications included with Tomcat will be
available by visiting:
http://localhost:8080/
(4.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/
(5) Shut Down Tomcat
(5.1) Tomcat can be shut down by executing one of the following commands:
On Windows:
%CATALINA_HOME%\bin\shutdown.bat
or
%CATALINA_HOME%\bin\catalina.bat stop
没有合适的资源?快使用搜索试试~ 我知道了~
apache-tomcat-8.5.9.zip
共283个文件
vbs:36个
jar:30个
log:13个
需积分: 9 3 下载量 41 浏览量
2019-06-11
10:42:15
上传
评论
收藏 10.31MB ZIP 举报
温馨提示
Tomcat是Apache 软件基金会(Apache Software Foundation)的Jakarta 项目中的一个核心项目,由Apache、Sun 和其他一些公司及个人共同开发而成。由于有了Sun 的参与和支持,最新的Servlet 和JSP 规范总是能在Tomcat 中得到体现,Tomcat 5支持最新的Servlet 2.4 和JSP 2.0 规范。因为Tomcat 技术先进、性能稳定,而且免费,因而深受Java 爱好者的喜爱并得到了部分软件开发商的认可,成为目前比较流行的Web 应用服务器。
资源推荐
资源详情
资源评论
收起资源包目录
apache-tomcat-8.5.9.zip (283个子文件)
jeasyframe.log.2017-01-06 141KB
jeasyframe.log.2017-01-08 25KB
jeasyframe.log.2017-01-09 659KB
jeasyframe.log.2017-01-10 944KB
jeasyframe.log.2017-01-11 268KB
jeasyframe.log.2017-01-12 458KB
jeasyframe.log.2017-01-13 151KB
jeasyframe.log.2017-01-16 110KB
jeasyframe.log.2017-01-17 244KB
jeasyframe.log.2017-01-18 25KB
jeasyframe.log.2017-01-19 500KB
jeasyframe.log.2017-01-20 118KB
jeasyframe.log.2017-01-22 1.27MB
jeasyframe.log.2017-01-23 238KB
jeasyframe.log.2017-02-06 556KB
jeasyframe.log.2017-02-08 1021KB
jeasyframe.log.2017-02-09 97KB
jeasyframe.log.2017-02-10 209KB
jeasyframe.log.2017-02-13 26KB
jeasyframe.log.2017-02-14 283KB
jeasyframe.log.2017-02-15 179KB
jeasyframe.log.2017-02-16 75KB
jeasyframe.log.2017-02-17 5.2MB
jeasyframe.log.2017-02-20 50KB
jeasyframe.log.2017-02-21 25KB
jeasyframe.log.2017-02-22 98KB
jeasyframe.log.2017-02-23 72KB
jeasyframe.log.2017-02-24 972KB
jeasyframe.log.2017-02-27 25KB
jeasyframe.log.2017-02-28 44KB
jeasyframe.log.2017-03-01 43KB
jeasyframe.log.2017-03-02 147KB
jeasyframe.log.2017-03-03 338KB
jeasyframe.log.2017-03-06 1.1MB
jeasyframe.log.2017-03-07 25KB
jeasyframe.log.2017-03-08 163KB
jeasyframe.log.2017-03-09 35KB
jeasyframe.log.2017-03-10 403KB
jeasyframe.log.2017-03-13 489KB
jeasyframe.log.2017-03-14 4.06MB
jeasyframe.log.2017-03-15 139KB
jeasyframe.log.2017-03-16 108KB
jeasyframe.log.2017-03-17 99KB
jeasyframe.log.2017-03-20 133KB
jeasyframe.log.2017-03-21 22KB
jeasyframe.log.2017-03-22 79KB
jeasyframe.log.2017-03-23 146KB
jeasyframe.log.2017-03-24 50KB
jeasyframe.log.2017-03-27 242KB
jeasyframe.log.2017-03-28 291KB
jeasyframe.log.2017-03-29 57KB
jeasyframe.log.2017-03-30 26KB
jeasyframe.log.2017-04-05 36KB
jeasyframe.log.2017-04-06 172KB
jeasyframe.log.2017-04-07 293KB
jeasyframe.log.2017-04-10 26KB
jeasyframe.log.2017-04-11 491KB
jeasyframe.log.2017-04-12 271KB
jeasyframe.log.2017-04-13 212KB
jeasyframe.log.2017-04-14 79KB
jeasyframe.log.2017-04-17 587KB
jeasyframe.log.2017-04-18 26KB
jeasyframe.log.2017-04-19 53KB
jeasyframe.log.2017-04-20 75KB
jeasyframe.log.2017-04-21 186KB
jeasyframe.log.2017-04-26 25KB
jeasyframe.log.2017-04-28 540KB
jeasyframe.log.2017-05-02 140KB
jeasyframe.log.2017-05-03 50KB
jeasyframe.log.2017-05-04 26KB
jeasyframe.log.2017-05-05 152KB
jeasyframe.log.2017-05-08 920KB
jeasyframe.log.2017-05-09 424KB
jeasyframe.log.2017-05-10 34KB
jeasyframe.log.2017-05-11 26KB
jeasyframe.log.2017-05-12 169KB
jeasyframe.log.2017-05-17 364KB
jeasyframe.log.2017-05-18 244KB
jeasyframe.log.2017-05-19 26KB
jeasyframe.log.2017-05-22 25KB
jeasyframe.log.2017-05-23 57KB
jeasyframe.log.2017-05-24 25KB
jeasyframe.log.2017-05-31 25KB
jeasyframe.log.2017-06-01 25KB
jeasyframe.log.2017-06-05 44KB
jeasyframe.log.2017-06-07 150KB
jeasyframe.log.2017-06-08 144KB
jeasyframe.log.2017-06-09 187KB
jeasyframe.log.2017-06-12 9.73MB
jeasyframe.log.2017-06-13 42KB
jeasyframe.log.2017-06-14 1.94MB
jeasyframe.log.2017-06-15 141KB
jeasyframe.log.2017-06-19 218KB
jeasyframe.log.2017-06-20 22KB
jeasyframe.log.2017-06-27 604KB
jeasyframe.log.2017-06-28 99KB
jeasyframe.log.2017-06-29 125KB
jeasyframe.log.2017-07-03 25KB
jeasyframe.log.2017-07-04 1016KB
jeasyframe.log.2017-07-05 449KB
共 283 条
- 1
- 2
- 3
资源评论
唉劳忽悠
- 粉丝: 5
- 资源: 5
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功