首页 > 代码库 > tomcat更改端口号

tomcat更改端口号

 <Service name="Catalina1">


  //端口9001

    <Connector port="9001" protocol="HTTP/1.1"
               connectionTimeout="20000"
               redirectPort="8443" />
 
    <Connector port="8009" protocol="AJP/1.3" redirectPort="8443" />


   
    <Engine name="Catalina1" defaultHost="localhost">

     
      <Realm className="org.apache.catalina.realm.UserDatabaseRealm"
             resourceName="UserDatabase"/>

      //访问地址appBase
      <Host name="localhost"  appBase="webapps/ld"
            unpackWARs="true" autoDeploy="true"
            xmlValidation="false" xmlNamespaceAware="false">

      </Host>
    </Engine>
  </Service>

就是不知道为什么改了端口号,ajax提交不了地址错误?

//localhost访问

 <Connector port="80" protocol="HTTP/1.1"
               connectionTimeout="20000"
               redirectPort="8443" />

tomcat更改端口号