Deploying SOLR in Windows under Tomcat

Source: Internet
Author: User
Tags solr

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

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.