1. Put the DIST \ apache-solr-3.6.1 under the apache-solr-3.6.0.war folder to the webapps directory under Tomcat and rename it SOLR. War
2. Copy the SOLR folder in the SOLR \ example directory under the apache-solr-3.6.1 folder to the Tomcat directory.
3. Change the conf \ Server. xml file in the Tomcat directory and find
(1) <connectorport ="8080"Protocol ="HTTP/1.1"Connectiontimeout ="20000"
Uriencoding ="UTF-8"Redirectport ="8443"/>
JoinUriencoding = "UTF-8"To enable SOLR to support Chinese Characters
(2) Insert the following code to change the SOLR path.
<Context Path = "/SOLR" docbase ="C: \ Program Files \ apache-Tomcat-6.0.14 \ webapps \ SOLR. War"
DEBUG ="0"Crosscontext ="True">
<Environmentname ="SOLR/home"Type ="Java. Lang. String"Value ="C: \ Program Files \ apache-Tomcat-6.0.14 \ SOLR"Override ="True"/>
</Context>
4. Change the SOLR \ conf \ solrconfig. xml file in the Tomcat directory.
<Datadir>$ {SOLR. Data. dir: C: \ Program Files \ apache-Tomcat-6.0.14 \ SOLR \ data}</Datadir>
SOLR. Data. dir:The storage path of the corresponding index file. Set it to SOLR \ data under tomcat.
5. Set classpath: "; C: \ Program Files \ apache-Tomcat-6.0.14 \ SOLR"
6. Start tomcat, http: // localhost: 8080/SOLR/admin to enter the SOLR management interface.