tomcat 下多core配置

1、在tomcat/conf/Catalina/localhost 下添加配置文件,one.xml 、other.xml

 

2、配置文件指明 solr应用路径和solr-home路径

one.xml

<?xml version="1.0" encoding="UTF-8"?>

<Context docBase="/solr" debug="0" crossContext="true" >  

          <Environment name="solr/home" type="java.lang.String" value="/solr-home/" override="true" />  

</Context>

 

other.xml

<?xml version="1.0" encoding="UTF-8"?>

<Context docBase="/solr" debug="0" crossContext="true" >  

          <Environment name="solr/home" type="java.lang.String" value="/solr-home1/" override="true" />  

</Context>

 

 

你可能感兴趣的:(tomcat)