Preparation environment:
Apache-tomcat-7.0.72.zip,
Solr-4.10.2.zip,
Java version:1.7.0_60
Download tomcat:http://tomcat.apache.org/or Http://pan.baidu.com/s/1qYAhpik
Download solr:http://lucene.apache.org/solr/or http://pan.baidu.com/s/1slImI89
==============================================================================
1. Unzip Tomcat and SOLR
2. Copy Solr-4.10.2\example\webapps\solr.war this war packet to Apache-tomcat-7.0.72\webapps. (Delete all existing files in the Apache-tomcat-7.0.72\webapps directory)
3, in any disk hyphenating (I use the e-disk here), under the E-disk to create a new folder: Solrhome, the SOLR-4.10.2\EXAMPLE\SOLR folder under the copy of all the files to E:/solrhome ( Important documents are Collection1 and Solr.xml, others can be deleted, temporarily not used).
4. Copy all jar packages under Solr-4.10.2\example\lib\ext to Apache-tomcat-7.0.72\webapps\solr\web-inf\lib
5. Modify the Web. xml file under Apache-tomcat-7.0.72\webapps\solr\web-inf (release the original comment and modify it)
<env-entry> <env-entry-name>solr/home</env-entry-name> <env-entry-value>e:/solrhome< ;/env-entry-value> <env-entry-type>java.lang.String</env-entry-type> </env-entry>
6, create a new classes folder under Apache-tomcat-7.0.72\webapps\solr\web-inf, and put solr-4.10.2\example\ The Log4j.properties log file under Resources is copied to this classes folder.
7. Launch Tomcat, visit:localhost:8080/solr
650) this.width=650; "src=" Http://s1.51cto.com/wyfs02/M01/89/22/wKioL1gI4VeTusxwAAFt2lL_358707.png "title=" Qq20161020232228.png "alt=" Wkiol1gi4vetusxwaaft2ll_358707.png "/>
This article is from the "Simple Life" blog, so be sure to keep this source http://simplelife.blog.51cto.com/9954761/1864071
Deploying SOLR in Windows under Tomcat