$Id: RUNNING.txt,v 1.6 2004/06/17 22:28:55 markt Exp $
Running The Tomcat 5 Servlet/JSP Container
==========================================
This subproject contains Tomcat 5, a server that implements the Servlet 2.4
and JSP 2.0 specifications from the Java Community Process
<http://www.jcp.org/>. In order to install and run this container, you must do
the following:
(0) Download and Install a Java Development Kit
* Download a Java Development Kit (JDK) release (version 1.3 or later) from:
http://java.sun.com/j2se/
* Install the JDK according to the instructions included with the release.
* Set an environment variable JAVA_HOME to the pathname of the directory
into which you installed the JDK release.
(1) Download and Install the Tomcat 5 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.
* Download a binary distribution of Tomcat from:
http://jakarta.apache.org/site/binindex.cgi
* Unpack the binary distribution into a convenient location so that the
distribution resides in its own directory (conventionally named
"jakarta-tomcat-5"). 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.
(2) Start Up Tomcat 5
Tomcat 5 can be started by executing the following commands:
$CATALINA_HOME\bin\startup.bat (Windows)
$CATALINA_HOME/bin/startup.sh (Unix)
After startup, the default web applications included with Tomcat 5 will be
available by visiting:
http://localhost:8080/
Further information about configuring and running Tomcat 5 can be found in
the documentation included here, as well as on the Tomcat web site:
http://jakarta.apache.org/tomcat/
(3) Shut Down Tomcat 5
Tomcat 5 can be shut down by executing the following command:
$CATALINA_HOME\bin\shutdown (Windows)
$CATALINA_HOME/bin/shutdown.sh (Unix)
(4) Advanced Configuration - Multiple Tomcat 5 Instances
In many circumstances, it is desirable to have a single copy of a Tomcat 5
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 5 instance.
When you use this "-Dcatalina.base=$CATALINA_BASE" argument, Tomcat 5 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
(5) Troubleshooting:
There are only really 3 things likely to go wrong during the stand-alone
Tomcat 5 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.
没有合适的资源?快使用搜索试试~ 我知道了~
基于PHP的BlogMethodsBasic(基础版)JSP独立安装包源码.zip
共1084个文件
gif:349个
jsp:169个
js:152个
1.该资源内容由用户上传,如若侵权请联系客服进行举报
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
版权申诉
0 下载量 24 浏览量
2023-07-30
21:50:30
上传
评论
收藏 17.47MB ZIP 举报
温馨提示
基于PHP的BlogMethodsBasic(基础版)JSP独立安装包源码.zip
资源推荐
资源详情
资源评论
收起资源包目录
基于PHP的BlogMethodsBasic(基础版)JSP独立安装包源码.zip (1084个子文件)
catalina.bat 7KB
catalina.50.bat 7KB
service.bat 4KB
tool-wrapper.bat 2KB
setclasspath.bat 2KB
digest.bat 1KB
version.bat 1KB
startup.bat 1KB
shutdown.bat 1KB
tool-wrapper-using-launcher.bat 1KB
shutdown-using-launcher.bat 1KB
startup-using-launcher.bat 1KB
cpappend.bat 511B
ArticlesAdminAction.class 16KB
ArticleServiceImpl.class 15KB
AdminAction.class 15KB
ArticlesAction.class 12KB
SetupAction.class 12KB
FilesAdminAction.class 10KB
ArticleDaoImpl.class 9KB
PagesAdminAction.class 8KB
LinksAdminAction.class 8KB
IndexDaoImpl.class 7KB
DiscussionAdminAction.class 6KB
SearchServiceImpl.class 6KB
BlogServiceImpl.class 6KB
DiscussionServiceImpl.class 6KB
CheckSignInFilter.class 5KB
MyTemplate.class 5KB
BlogContextLoaderServlet.class 5KB
PageServiceImpl.class 5KB
PageDaoImpl.class 5KB
LauncherBootstrap.class 5KB
MessageAction.class 4KB
FileServiceImpl.class 4KB
AuthAction.class 4KB
MessageAdminAction.class 4KB
FileDaoImpl.class 4KB
LinkServiceImpl.class 4KB
Blog.class 4KB
CharacterEncodingFilter.class 4KB
TrackbackDaoImpl.class 4KB
CommentDaoImpl.class 4KB
LinkDaoImpl.class 4KB
FeedsAction.class 4KB
Article.class 4KB
Page.class 4KB
TagDaoImpl.class 4KB
User.class 3KB
UserDaoImpl.class 3KB
Link.class 3KB
TagServiceImpl.class 3KB
CacheManager.class 3KB
Trackback.class 3KB
MessageDaoImpl.class 3KB
Comment.class 3KB
LinksCategory.class 3KB
File.class 3KB
Message.class 3KB
PagesAction.class 3KB
DisscussionModerator.class 3KB
Tag.class 2KB
StringUtils.class 2KB
SearchAction.class 2KB
ApplicationInitListener.class 2KB
PageResult.class 2KB
CalendarModel.class 2KB
SearchResult.class 2KB
BlogAction.class 2KB
MessageServiceImpl.class 2KB
Options.class 2KB
UserMeta.class 2KB
LinksAction.class 2KB
SpamChecker.class 2KB
IncludeAction.class 2KB
PathRedirectFilter.class 2KB
DateUtils.class 2KB
ArticleService.class 2KB
BlogContext.class 1KB
OptionDaoImpl.class 1KB
Option.class 1KB
WebUtils.class 1KB
RequestUtils.class 1KB
ArticleDao.class 1KB
Archive.class 1011B
MyDaoSupport.class 962B
ServiceConstants.class 802B
DiscussionService.class 742B
LinkDao.class 735B
LinkService.class 735B
FileDao.class 729B
BlogService.class 712B
FileService.class 697B
TrackbackDao.class 651B
CommentDao.class 635B
PageDao.class 632B
IDGenerator.class 623B
MiscConstants.class 558B
TagDao.class 547B
PageService.class 525B
共 1084 条
- 1
- 2
- 3
- 4
- 5
- 6
- 11
资源评论
易小侠
- 粉丝: 6459
- 资源: 9万+
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功