下载和安装Tomcat
Tomcat 是跨平台的. 而且有免安装版本.也就是说解压就可以使用,当然前提条件是你安装了 JDK 或者JRE,本篇中将不在讲述如何安装JDK.如果你还不会安装JDK,请查看 http://www.iyunv.com/tomaer/articles/1924335.html
这里我们选择免安装版本,下载目录:http://archive.apache.org/dist/tomcat/tomcat-6/v6.0.29/bin/ ,这个目录里面列出了很多.在写此章之前。我还不知道原来有Windows 64位版.后面的系列中提到的下载地址为:
http://archive.apache.org/dist/tomcat/tomcat-6/v6.0.29/bin/apache-tomcat-6.0.29.zip (Windows platform)
http://archive.apache.org/dist/tomcat/tomcat-6/v6.0.29/bin/apache-tomcat-6.0.29.tar.gz (Unix/Linux platform)
Remark:
apache-tomcat-[version].zip or .tar.gz
Base distribution. These distributions do not include the Windows service wrapper nor the compiled APR/native library for Windows.
apache-tomcat-[version].exe
32-bit/64-bit Windows installer for Tomcat. Please note that while this distribution includes the vast majority of the base distribution, some of the command-line scripts for launching Tomcat are not included. This distribution is intended for those users planning to launch Tomcat through the Windows shortcuts or services.
apache-tomcat-[version]-windows-x86.zip
32-bit Windows specific distribution that includes the Windows service wrapper and the compiled APR/native library for use with 32-bit JVMs on both 32 and 64 bit Windows platforms.
apache-tomcat-[version]-windows-x64.zip
64-bit Windows specific distribution that includes the Windows service wrapper and the compiled APR/native library for use with 64-bit JVMs on x64 Windows platforms.
apache-tomcat-[version]-windows-i64.zip
64-bit Windows specific distribution that includes the Windows service wrapper and the compiled APR/native library for use with 64-bit JVMs on Itanium 64-bit Windows platforms.
apache-tomcat-[version]-deployer.zip or .tar.gz
The standalone Tomcat Web Application Deployer. apache-tomcat-[version]-fulldocs.tar.gz The Tomcat documentation bundle, including complete javadocs.
[iyunv@localhost ~]# Using CATALINA_BASE: /usr/local/tomcat
Using CATALINA_HOME: /usr/local/tomcat
Using CATALINA_TMPDIR: /usr/local/tomcat/temp
Using JRE_HOME: /usr/java/jdk1.6.0_23
Using CLASSPATH: /usr/local/tomcat/bin/bootstrap.jar
在浏览器上键入http://ip:8080/ 出现tomcat的页面则说明一切就绪
Windows platform Install Apache Tomcat 6.0.29
此文中给出了windows平台的下载地址,相对于unix/linux平台来讲,windows平台安装tomcat就一步.解压缩即可.假设目录为F:\apache-tomcat-6.0.29,之后我们将这个目录称为tomcat主目录。
启动tomcat,进入tomcat主目录下面的bin目录,双击startup.bat即可,停止tomcat双击shutdown.bat即可
在浏览器上键入http://ip:8080/ 出现tomcat的页面则说明一切就绪