一个版本Tomcat6多处使用,以及集成solr的配置
2016-11-24 09:29
441 查看
修改tomcat/conf/server.xml文件里面端口号的问题: 目前该文件下:tomcat的修改问题: C盘 C:\Users\Administrator\Desktop\solr\server\conf\server.xml shotdown pro8008;protocol="AJP/1.3"端口8006;协议线程池端口:8083; D盘 D:\Program Files\Apache Software Foundation\Tomcat 7.0\conf\server.xml shotdown pro8006;protocol="AJP/1.3"端口8008;协议线程池端口:8081; E盘 E:\ZRPDLearn\tom\apache-tomcat-6.0.45-windows-x64\apache-tomcat-6.0.45\conf\server.xml shotdown pro8007;protocol="AJP/1.3"端口8007;协议线程池端口:8082; F盘 F:\tom\apache-tomcat-6.0.45-windows-x64\apache-tomcat-6.0.45\conf\server.xml shotdown pro8005;protocol="AJP/1.3"端口8009;协议线程池端口:8080; <?xml version='1.0' encoding='utf-8'?> <!-- Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to You under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. --> <!-- Note: A "Server" is not itself a "Container", so you may not define subcomponents such as "Valves" at this level. Documentation at /docs/config/server.html --> <Server port="8008" shutdown="SHUTDOWN"> <!--APR library loader. Documentation at /docs/apr.html --> <Listener className="org.apache.catalina.core.AprLifecycleListener" SSLEngine="on" /> <!--Initialize Jasper prior to webapps are loaded. Documentation at /docs/jasper-howto.html --> <Listener className="org.apache.catalina.core.JasperListener" /> <!-- Prevent memory leaks due to use of particular java/javax APIs--> <Listener className="org.apache.catalina.core.JreMemoryLeakPreventionListener" /> <!-- JMX Support for the Tomcat server. Documentation at /docs/non-existent.html --> <Listener className="org.apache.catalina.mbeans.ServerLifecycleListener" /> <Listener className="org.apache.catalina.mbeans.GlobalResourcesLifecycleListener" /> <!-- Global JNDI resources Documentation at /docs/jndi-resources-howto.html --> <GlobalNamingResources> <!-- Editable user database that can also be used by UserDatabaseRealm to authenticate users --> <Resource name="UserDatabase" auth="Container" type="org.apache.catalina.UserDatabase" description="User database that can be updated and saved" factory="org.apache.catalina.users.MemoryUserDatabaseFactory" pathname="conf/tomcat-users.xml" /> </GlobalNamingResources> <!-- A "Service" is a collection of one or more "Connectors" that share a single "Container" Note: A "Service" is not itself a "Container", so you may not define subcomponents such as "Valves" at this level. Documentation at /docs/config/service.html --> <Service name="Catalina"> <!--The connectors can use a shared executor, you can define one or more named thread pools--> <!-- <Executor name="tomcatThreadPool" namePrefix="catalina-exec-" maxThreads="150" minSpareThreads="4"/> --> <!-- A "Connector" represents an endpoint by which requests are received and responses are returned. Documentation at : Java HTTP Connector: /docs/config/http.html (blocking & non-blocking) Java AJP Connector: /docs/config/ajp.html APR (HTTP/AJP) Connector: /docs/apr.html Define a non-SSL HTTP/1.1 Connector on port 8080 --> <Connector port="8083" protocol="HTTP/1.1" connectionTimeout="20000" redirectPort="8443" /> <!-- A "Connector" using the shared thread pool--> <!-- <Connector executor="tomcatThreadPool" port="8083" protocol="HTTP/1.1" connectionTimeout="20000" redirectPort="8443" /> --> <!-- Define a SSL HTTP/1.1 Connector on port 8443 This connector uses the JSSE configuration, when using APR, the connector should be using the OpenSSL style configuration described in the APR documentation --> <!-- <Connector port="8443" protocol="HTTP/1.1" SSLEnabled="true" maxThreads="150" scheme="https" secure="true" clientAuth="false" sslProtocol="TLS" /> --> <!-- Define an AJP 1.3 Connector on port 8009 --> <Connector port="8006" protocol="AJP/1.3" redirectPort="8443" /> <!-- An Engine represents the entry point (within Catalina) that processes every request. The Engine implementation for Tomcat stand alone analyzes the HTTP headers included with the request, and passes them on to the appropriate Host (virtual host). Documentation at /docs/config/engine.html --> <!-- You should set jvmRoute to support load-balancing via AJP ie : <Engine name="Catalina" defaultHost="localhost" jvmRoute="jvm1"> --> <Engine name="Catalina" defaultHost="localhost"> <!--For clustering, please take a look at documentation at: /docs/cluster-howto.html (simple how to) /docs/config/cluster.html (reference documentation) --> <!-- <Cluster className="org.apache.catalina.ha.tcp.SimpleTcpCluster"/> --> <!-- The request dumper valve dumps useful debugging information about the request and response data received and sent by Tomcat. Documentation at: /docs/config/valve.html --> <!-- <Valve className="org.apache.catalina.valves.RequestDumperValve"/> --> <!-- This Realm uses the UserDatabase configured in the global JNDI resources under the key "UserDatabase". Any edits that are performed against this UserDatabase are immediately available for use by the Realm. --> <Realm className="org.apache.catalina.realm.UserDatabaseRealm" resourceName="UserDatabase"/> <!-- Define the default virtual host Note: XML Schema validation will not work with Xerces 2.2. --> <Host name="localhost" appBase="webapps" unpackWARs="true" autoDeploy="true" xmlValidation="false" xmlNamespaceAware="false"> <Context path="/solrxueyuan" docBase="solr" reloadable="false" crossContext="true"> <Environment name="solr/home" type="java.lang.String" value="C:\Users\Administrator\Desktop\solr\home" override="true"/> </Context> <!-- SingleSignOn valve, share authentication between web applications Documentation at: /docs/config/valve.html --> <!-- <Valve className="org.apache.catalina.authenticator.SingleSignOn" /> --> <!-- Access log processes all example. Documentation at: /docs/config/valve.html --> <!-- <Valve className="org.apache.catalina.valves.AccessLogValve" directory="logs" prefix="localhost_access_log." suffix=".txt" pattern="common" resolveHosts="false"/> --> </Host> </Engine> </Service> </Server>
相关文章推荐
- idea集成开发工具的使用,tomcat服务器配置以及项目部署
- solr 7+tomcat 8 + mysql实现solr 7基本使用(安装、集成中文分词器、定时同步数据库数据以及项目集成)
- 如何配置tomcat使用特定的jdk版本
- hibernate3使用集成log4j的配置以及实现
- 在Tomcat下配置Solr 4.x 版本
- 安装配置apache-solr(使用apache-tomcat容器)
- tomcat 配置以及和Eclipse集成
- 在eclipse中使用maven配置与tomcat集成的web项目
- ubuntu下tomcat7和solr4.6集成配置
- tomcat配置及使用(环境变量设置及测试,一个简单的web应用实例)
- servlet的一个简单实例以及配置到tomcat上
- 使用HttpClient发送HTTPS请求以及配置Tomcat支持SSL
- 开发中的版本问题(2)—配置tomcat使用特定的jdk版本
- 在Tomcat中使用一个IP,一个端口,配置多个域名
- tomcat配置及使用(环境变量设置及测试,一个简单的web应用实例)
- 使用Visual Studio .NET 2010的配置和条件编译在一个项目实现不同版本
- hibernate3使用集成 log4j 的配置以及实现
- 在Eclipse中使用tomcat配置solr
- 开发中的版本问题(2)―配置tomcat使用特定的jdk版本
- JDBC的第一个版本,不使用配置文件。使用jar文件一个