- Make sure Java is installed on the machine.
- Install Apache Tomcat on port 8983 (or any other port) (Installed at location: D:\Apache)
- Open URL: http://localhost:8983 to check if installation is working
- Download any version of SOLR (in my case it 3.6.2 file apache-solr-3.6.2.zip)
- Stop Tomcat
- Unzip the SOLR and goto apache-solr-3.6.2\dist
- Copy the war file (apache-solr-3.6.2.war) to D:\Apache\webapps twice
- Rename the war files to solr.war and solr-preview.war respectively
- Create a SOLR home folder (in my case at location D:\Apache\solr and D:\Apache\solr-preview)
- Started and stopped Tomcat.
- Goto D:\Apache\webapps\solr\META-INF
- Create a context.xml file with content:
<Context docBase="D:\Apache\webapps\solr.war" debug="0" crossContext="true"> <Environment name="solr/home" type="java.lang.String" value="D:\Apache\solr" override="true" /> </Context>
- Goto D:\Apache\webapps\solr-preview\META-INF
- Create a context.xml file with content:
<Context docBase="D:\Apache\webapps\solr-preview.war" debug="0" crossContext="true"> <Environment name="solr/home" type="java.lang.String" value="D:\Apache\solr-preview" override="true" /> </Context>
- Copy all files from apache-solr-3.6.2\example\solr to both SOLR home folders D:\Apache\solr and D:\Apache\solr-preview)
- Start Tomcat Service
- The solr instances will be available on the URL: http://localhost:8983/solr and http://localhost:8983/solr-preview
- To test the settings create a SOLR node in any of the SOLR instances. E.g. in Solr-preview. The new instance will be available only on Solr-preview instance
Oct 9, 2014
Installing multiple SOLR Instances in Tomcat on Same Server
Sep 29, 2014
Subscribe to:
Posts (Atom)