- : 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 folder, such as D:\apache\solr-4.3.0
- find a folder as the Solr home folder. such as d:/solrhome
- Copy D : \apache\solr-4.3.0\dist folder under Solr-4.3.0.war package to D:/solrhome , then unzip the Solr-4.3.0.war. Rename to SOLR.
- Copy all files under the D:\apache\solr-4.3.0\example\solr folder to D:/SOLRHOME/SOLR
- Add Solr.xml under the Tomcat\conf\catalina\localhost folder, such as the following:
<?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\ Solr\web-inf\web.xml, for example, the following code stares and changes such as the following:
<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>
- Launch Tomcat, visit http://localhost:8090/solr/(mine port to 8090)
Copyright notice: This article Bo Master original articles, blogs, without consent may not be reproduced.
Windows has the SOLR installed