Win10,JDK8,tomact7.0.85配置

今天在win10上配置了jdk以及tomact先前使用jdk7+tomact7.0.56运行失败.

后经调整后正确配置注意事项如下:

1.下载并按照jdk-8u161-windows-x64,默认安装在c盘

2.下载免安装版tomact7.0.85并安装

3.Java环境配置

  JAVA_HOME=jdk安装目录

       ClassPath=.;%JAVA_HOME%\lib\dt.jar;%JAVA_HOME%\lib\tools.jar;

  path=%JAVA_HOME%\bin;%JAVA_HOME%\jre\bin;(属于追加)

4.tomact环境配置

  CATALINA_BASE=tomact安装目录

  CATALINA_HOME=tomact安装目录

5.修改tomact配置

    5.0配置文件路径 apache-tomcat-7.0.85-X64\conf\server.xml

    5.1 默认配置均可运行

    5.2自定义配置

      修改端口,证书,https配置如下

         <Server port="7105" shutdown="SHUTDOWN">

          <Connector port="7180" protocol="HTTP/1.1"
               connectionTimeout="20000"
               redirectPort="7143" />

          <!--Https配置-->
         <Connector port="7143" protocol="org.apache.coyote.http11.Http11Protocol" SSLEnabled="true"
               maxThreads="200" scheme="https" secure="true"
               clientAuth="false" sslProtocol="TLS"
               keystoreFile="d:/Keys/.keystore"
               keystorePass="changeit" />
        <!-- Define an AJP 1.3 Connector on port 7109 -->
        <Connector port="7109" protocol="AJP/1.3" redirectPort="7143" />

     </Service>

     

posted @ 2018-03-27 10:29  李文学  阅读(720)  评论(0编辑  收藏  举报