1.下载TomCat
下载地址:http://tomcat.apache.org/
2.配置环境变量
CATALINA_HOME:F:JAVAapache-tomcat-6.0.18apache-tomcat-6.0.18
CATALINA_HOME:F:JAVAapache-tomcat-6.0.18apache-tomcat-6.0.18
TOMCAT_HOME:F:JAVAapache-tomcat-6.0.18apache-tomcat-6.0.18
CLASSPATH: ;%CATALINA_HOME%commonlibservlet-api.jar
path:;%CATALINA_HOME%lib;%CATALINA_HOME%libservlet-api.jar;%CATALINA_HOME%libjsp-api.jar
3.修改配置端口
在Tomcat的conf文件夹里有个server.xml文件
<!-- A "Connector" represents an endpoint by which requests are received
and responses are returned. Documentation at :
Java HTTP Connector: /docs/config/http.html
Java AJP Connector: /docs/config/ajp.html
APR (HTTP/AJP) Connector: /docs/apr.html
Define a non-SSL/TLS HTTP/1.1 Connector on port 8080
-->
<Connector port="8010" protocol="HTTP/1.1" connectionTimeout="20000" redirectPort="8443" />
4.启动
在Tomcat的bin文件夹里有个startup.bat文件双击