apache-tomcat-8.0.47的安装

来源:互联网 发布:水滴软件下载 编辑:程序博客网 时间:2024/06/06 05:44

1.在 http://tomcat.apache.org/ 上下载tomcat。我下载的是apache-tomcat-8.0.47

因为我看了看我装的eclipse, windows-preferences-server-runtime environment ADD的时候 发现最高版本只能添加tomcat 8.0 的所以就下了个8.0的


2.解压,配环境变量

CATALINA_BASE       E:\tomcat\apache-tomcat-8.0.47

CATALINA_HOME      E:\tomcat\apache-tomcat-8.0.47

PATH                            %CATALINA_HOME%\lib;%CATALINA_HOME%\bin;


3.配完了之后 cmd 运行startup.bat


我最开始的时候出现了一些问题 后来查阅资料为端口占用 ,因为默认的端口为8080 ,打开任务管理器之后发现8080已经被占用了,

之后就更改    E:\tomcat\apache-tomcat-8.0.47\conf    这个conf文件夹下的server.xml文件。


.......

 <Connector port="8088" protocol="HTTP/1.1"         <--------------------------------------------------这里的8088是后来改的,原来的时候为8080,更改之后解决了端口占用问题
               connectionTimeout="20000"
               redirectPort="8443" />
    <!-- A "Connector" using the shared thread pool-->
    <!--
    <Connector executor="tomcatThreadPool"
               port="8080" protocol="HTTP/1.1"
               connectionTimeout="20000"
               redirectPort="8443" />
    -->
    <!-- Define a SSL/TLS HTTP/1.1 Connector on port 8443
         This connector uses the NIO implementation th


4.最后的时候登一个    localhost:8088   如果能访问就可以了。