Java 学习札记(二)TomCat安装配置
1.下载TomCat
下载地址:http://tomcat.apache.org/
2.配置环境变量
CATALINA_HOME:F:\JAVA\apache-tomcat-6.0.18\apache-tomcat-6.0.18
CATALINA_HOME:F:\JAVA\apache-tomcat-6.0.18\apache-tomcat-6.0.18
TOMCAT_HOME:F:\JAVA\apache-tomcat-6.0.18\apache-tomcat-6.0.18
CLASSPATH: ;%CATALINA_HOME%\common\lib\servlet-api.jar
path:;%CATALINA_HOME%\lib;%CATALINA_HOME%\lib\servlet-api.jar;%CATALINA_HOME%\lib\jsp-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文件双击
5.检测