zoukankan      html  css  js  c++  java
  • 同一台服务器上部署多个Tomcat的配置修改方法

    同一服务器部署多个tomcat时,存在端口号冲突的问题,所以需要修改tomcat配置文件server.xml,以tomcat7为例。

    首先了解下tomcat的几个主要端口:

    <Server port="8005" shutdown="SHUTDOWN">
    
    <Connector port="8080" protocol="HTTP/1.1" connectionTimeout="60000" redirectPort="8443" disableUploadTimeout="false" executor="tomcatThreadPool" URIEncoding="UTF-8"/>
    
    <Connector port="8009" protocol="AJP/1.3" redirectPort="8443" /> 

    其中8005为远程停服务端口,8080为HTTP端口8009为AJP端口,8443为HTTPS端口,APACHE能过AJP协议访问TOMCAT的8009端口。

    部署多个tomcat主要修改三个端口:
    1.远程停服务端口,默认8005,如下改为8006

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

    2.HTTP端口,默认8080,如下改为8081

    <Connector port="8081" protocol="HTTP/1.1" connectionTimeout="60000" redirectPort="8443" disableUploadTimeout="false" executor="tomcatThreadPool" URIEncoding="UTF-8"/>

    3.AJP端口,默认8009,如下改,8010

    <Connector port="8010" protocol="AJP/1.3" redirectPort="8443" />
  • 相关阅读:
    自定义组件要加@click方法
    绑定样式
    647. Palindromic Substrings
    215. Kth Largest Element in an Array
    448. Find All Numbers Disappeared in an Array
    287. Find the Duplicate Number
    283. Move Zeroes
    234. Palindrome Linked List
    202. Happy Number
    217. Contains Duplicate
  • 原文地址:https://www.cnblogs.com/xvpindex/p/7199972.html
Copyright © 2011-2022 走看看