📄 319.html
字号:
<STYLE type=text/css>
<!--
body,td { font-size:9pt;}
hr { color: #000000; height: 1px}
-->
</STYLE>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "http://www.w3.org/TR/REC-html40/loose.dtd">
<HTML>
<HEAD><TITLE>精选文章 >> Tomcat >> Tomcat Servlet Container</title>
</head>
<body >
<p><IMG SRC="../image/jsp001_middle_logo.gif" WIDTH="180" HEIGHT="60" BORDER=0 ALT=""></p>
<table width=100% bgcolor="#cccccc" align=center cellpadding="2" cellspacing="0" border=1 bordercolorlight="#000000" bordercolordark="#FFFFFF">
<tr bgcolor="#EFF8FF"><td>
<a href=http://www.jsp001.com/list_thread.php?int_attribute=2>精选文章</a>
>> <a href=http://www.jsp001.com/list_thread.php?forumid=11&int_attribute=2>Tomcat</a>
>> Tomcat Servlet Container [<a href=http://www.jsp001.com/forum/showthread.php?goto=newpost&threadid=319>查看别人的评论</a>]<br>
<hr><p>由 webmaster 发布于: 2001-02-08 12:41</p><p><img src="images/icons/icon14.gif" alt="Thumbs up" border=0> </p><p> Tomcat Servlet Container<br> ========================<br><br><br>This subproject contains the source code for the Tomcat servlet container (and<br>JSP engine) that conforms to the Java Servlet API Specification (version 2.2)<br>and the JavaServer Pages Specificaton (version 1.1).<br><br><br>Installing and Building Tomcat<br>==============================<br><br>In order to successfully build Tomcat, you will need to do the following. In<br>the instructions below, $JAKARTA_HOME is assumed to be the directory into which<br>you are installing all of the required distributions.<br><br>* Download and install a version 1.1 or later Java Development Kit<br> implementation for your operating system platform. Set a "JAVA_HOME"<br> environment variable to point at the directory where your JDK is installed,<br> and add "$JAVA_HOME/bin" to your PATH. Configure the CLASSPATH environment<br> variable as well, if required.<br><br>* Download and install an XML parser that is compliant with the Java API for<br> XML Parsing specification. You will need to add the appropriate JAR files<br> for your parser to your system classpath. Parsers known to work with<br> Tomcat include:<br><br> * The JAXP reference implementation (version 1.0 or later), which can be<br> downloaded from <http://java.sun.com/xml>.<br><br> * The Xerces parser (version 1.1.2 or later), which can be downloaded<br> from <http://xml.apache.org>.<br><br>* Download and install the Java API for XML Parsing implementation (get version<br> 1.0 or later) from <http://java.sun.com/xml>. Make sure that the<br> "jaxp.jar" and "parser.jar" files are on your class path.<br><br>* Download and install the Ant distribution (subproject "jakarta-ant") into<br> a directory named "$JAKARTA_HOME/jakarta-ant". If you have downloaded the<br> source distribution, you will need to build the executable version by<br> executing the following commands:<br><br> cd $JAKARTA_HOME/jakarta-ant<br> ./bootstrap.sh <-- Unix<br> bootstrap <-- Windows<br><br> This should result in the creation of a file "ant.jar" in the "lib"<br> subdirectory, which will be used when building Tomcat.<br><br>* Download and install the Servletapi distribution (subproject<br> "jakarta-servletapi") into a subdirectory named<br> "$JAKARTA_HOME/jakarta-servletapi". If you have downloaded the source<br> distribution, you will need to build the executable version by<br> executing the following commands:<br><br> cd $JAKARTA_HOME/jakarta-servletapi<br> ./build.sh dist <-- Unix<br> build dist <-- Windows<br><br> This should result in the creation of a file "servlet.jar" in the "lib"<br> subdirectory, which will be used when building Tomcat.<br><br>* Download the source distribution of Tomcat (subpackage "jakarta-tomcat"),<br> or check it out via anonymous CVS, into a subdirectory named<br> "$JAKARTA_HOME/jakarta-tomcat". You can now build an "unpacked" version<br> of Tomcat (quicker builds because no time is spent JARing up results)<br> by executing the following commands:<br><br> cd $JAKARTA_HOME/jakarta-tomcat<br> ./build.sh <-- Unix<br> build <-- Windows<br><br> This version can be executed as follows:<br><br> cd $JAKARTA_HOME/build/tomcat<br> ./bin/startup.sh <-- Unix<br> bin\startup <-- Windows<br><br> and it can be shut down as follows:<br><br> cd $JAKARTA_HOME/build/tomcat<br> ./bin/shutdown.sh <-- Unix<br> bin\shutdown <-- Windows<br><br>* You can also build a binary distribution version of Tomcat as follows:<br><br> cd $JAKARTA_HOME/jakarta-tomcat<br> ./build.sh dist <-- Unix<br> build dist <-- Windows<br><br> This will create a distribution in "$JAKARTA_HOME/dist/tomcat" that is<br> equivalent (in file arrangement) to the binary distribution releases<br> of Tomcat that can be downloaded from the Jakarta web site at<br> <http://jakarta.apache.org>.<br><br>* You can delete the generated files in the "build/tomcat" and "dist/tomcat"<br> directories by executing the following:<br><br> cd $JAKARTA_HOME/jakarta-tomcat<br> ./build.sh clean <-- Unix<br> build clean <-- Windows<br><br><br>Running the Build<br>=================<br><br>You can run the "unpacked" version of Tomcat as follows:<br><br>* To start Tomcat, execute the following commands:<br><br> cd $JAKARTA_HOME/build/tomcat<br> ./bin/startup.sh <-- Unix<br> bin\startup <-- Windows<br><br>* You can now access the default web pages from a web browser at URL:<br><br> http://localhost:8080<br><br>* To stop Tomcat, execute the following commands:<br><br> cd $JAKARTA_HOME/build/tomcat<br> ./bin/shutdown.sh <-- Unix<br> bin\shutdown <-- Windows<br><br>You can run the "distribution" version of Tomcat as follows:<br><br>* To start Tomcat, execute the following commands:<br><br> cd $JAKARTA_HOME/dist/tomcat<br> ./bin/startup.sh <-- Unix<br> bin\startup <-- Windows<br><br>* You can now access the default web pages from a web browser at URL:<br><br> http://localhost:8080<br><br>* To stop Tomcat, execute the following commands:<br><br> cd $JAKARTA_HOME/dist/tomcat<br> ./bin/shutdown.sh <-- Unix<br> bin\shutdown <-- Windows<br><br>Alternatively, you can run Tomcat without changing your current working<br>directory, by setting the TOMCAT_HOME environment variable to point at the<br>Tomcat files you have built (for example, at directory<br>"$JAKARTA_HOME/build/tomcat" or "$JAKARTA_HOME/dist/tomcat"). Now, you<br>can start Tomcat as follows:<br><br> $TOMCAT_HOME/bin/startup.sh <-- Unix<br> %TOMCAT_HOME%\bin\startup <-- Windows<br><br>and shut it down likewise:<br><br> $TOMCAT_HOME/bin/shutdown.sh <-- Unix<br> %TOMCAT_HOME%\bin\shutdown <-- Windows<br><br><br>Testing the Build<br>=================<br><br>Tomcat includes a small web application with some quick tests to exercize<br>the various parts of the server. It is built automatically, along with the<br>rest of Tomcat, by the steps described above. To run the tests against the<br>"unpacked" build, for example, you would do the following:<br><br> cd $JAKARTA_HOME/build/tomcat <-- Unix<br> ./bin/tomcat.sh ant -buildfile conf/test-tomcat.xml<br><br> cd %JAKARTA_HOME%\build\tomcat <-- Windows<br> bin\tomcat ant -buildfile conf\test-tomcat.xml<br><br>You can also use the Watchdog compatibility test suite, also available at<br><http://jakarta.apache.org>, to test Tomcat's compliance to the servlet and<br>JSP specifications.<br><br><br><br>Before Committing Changes<br>=========================<br><br>Before committing any changes to the Tomcat CVS repository, you MUST do a<br>"build clean" followed by a "build dist" to ensure that the build process runs<br>cleanly, and you must ensure that the tests run correctly.<br><br><br></p></td>
</tr>
</table>
<p>
<CENTER><a href="http://www.jsp001.com/forum/newreply.php?action=newreply&threadid=319">点这里对该文章发表评论</a></CENTER>
<p>该文章总得分是 <font color=red>0</font> 分,你认为它对你有帮助吗?
[<a href=javascript:void(0) onclick=window.open("http://www.jsp001.com/forum/codeVote.php?threadid=319&intVote=4","","menubar=no,toolbar=no,location=no,directories=no,status=no,resizable=no,scrollbars=no,width=70,height=40,top=0,left=0")>非常多</a>](<font color=red>0</font>)
[<a href=javascript:void(0) onclick=window.open("http://www.jsp001.com/forum/codeVote.php?threadid=319&intVote=2","","menubar=no,toolbar=no,location=no,directories=no,status=no,resizable=no,scrollbars=no,width=70,height=40,top=0,left=0")>有一些</a>](<font color=red>0</font>)
[<a href=javascript:void(0) onclick=window.open("http://www.jsp001.com/forum/codeVote.php?threadid=319&intVote=1","","menubar=no,toolbar=no,location=no,directories=no,status=no,resizable=no,scrollbars=no,width=70,height=40,top=0,left=0")>无帮助</a>](<font color=red>0</font>)
[<a href=javascript:void(0) onclick=window.open("http://www.jsp001.com/forum/codeVote.php?threadid=319&intVote=-1","","menubar=no,toolbar=no,location=no,directories=no,status=no,resizable=no,scrollbars=no,width=70,height=40,top=0,left=0")>是灌水</a>](<font color=red>0</font>) </p>
<script language="javascript" src="http://www.jsp001.com/include/read_thread_script.php?threadid=319"></script>
<p><CENTER>
Copyright © 2001 - 2009 JSP001.com . All Rights Reserved <P>
<IMG SRC="../image/jsp001_small_logo.gif" WIDTH="85" HEIGHT="30" BORDER=0 ALT="">
</CENTER></p>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -