- : http://archive.apache.org/dist/lucene/solr/
- Operating environment: WIN7,TOMCAT6, Solr4.3, Jdk6
- Download the solr4.3 package and unzip it to a local directory, such as D:\apache\solr-4.3.0
- find a directory as the home directory of SOLR, such as D:/solrhome
- Copy D : \apache\solr-4.3.0\dist directory under Solr-4.3.0.war package to D:/solrhome , then unzip the Solr-4.3.0.war and rename it to SOLR.
- Copy all files under the D:\APACHE\SOLR-4.3.0\EXAMPLE\SOLR directory to D:/SOLRHOME/SOLR
- In the Tomcat\conf\catalina\localhost directory, add Solr.xml, which reads as follows:
<?xml version= "1.0" encoding= "UTF-8"? ><context docbase= "D:/SOLRHOME/SOLR" debug= "0" crosscontext= "true" > <environment name= "Solr/home" type= "java.lang.String" value= "D:/solrhome" override= "true"/></ Context>
- Copy all the Lib packages under the Solr-4.3.0\example\lib\ext to Tomcat\lib
- in the D:\solrhome\ Remove the following code comment in Solr\web-inf\web.xml and modify it as follows:
<env-entry> <env-entry-name>solr/home</env-entry-name> <env-entry-value>d:/ Solrhome/solr</env-entry-value> <env-entry-type>java.lang.string</env-entry-type></ Env-entry>
- Start Tomcat, Access http://localhost:8090/solr/(my port is 8090)
Installing SOLR under Windows