Install and configure SOLR 4.9 (ii) under Windows

Source: Internet
Author: User
Tags log log solr

Combine SOLR and Tomcat:

1. Create a directory D:\DEMOS\SOLR under D disk

2. Extract solr-4.9.0 file, I download here is this 4.9 version, will example folder in the Solr folder in all files (not including the SOLR folder itself)

Copy to D:\DEMOS\SOLR directory

3. Create a SOLR Web application that will extract the Solr-4.9.0.war files under the Dist directory under the solr-4.9.0

Copy to the D:\apache-tomcat-7.0.54\webapps folder, Rename to Solr.war, you must extract the war file yourself, (start Tomcat will automatically extract, but this file inside the Lib directory things seem to be uncompressed), see WebApps Below a SOLR folder, the following figure:

4. Open the Solrconfig.xml file under D:\Demos\Solr\collection1\conf,

Comment out these configurations, temporarily not

Continue to find the DataDir node, modify the value of <dataDir>${solr.data.dir:d:/Demos/Solr/data}</dataDir>, the Data folder for storing query index and data place, The Data folder creates itself

5. Open the Web.xml file under the D:\apache-tomcat-7.0.54\webapps\solr\WEB-INF folder, add the Env-entry node (default is commented out), modify the value of <env-entry-value >d:/demos/solr</env-entry-value>, pay attention to slash.

6. Will extract all the jar packs under the Dist/solrj-lib under the solr-4.9.0 folder

Copy to D:\apache-tomcat-7.0.54\lib folder

After starting Tomcat, enter in the Address bar: HTTP://LOCALHOST:8080/SOLR

Enter the Tomcat management program to find SOLR, if the discovery is not started, or the DOT Start button will not start SOLR success, as shown in the following figure:

You need to check the Localhost.2014-07-31.log log file under the Tomcat log folder to find the crux of the problem.

This error is missing the jar pack (missing Slf4j.jar). \lucene\solr-4.9.0\example\lib\ext all jar packages under this path with the F:\tools\ development tool

Copy into D:\apache-tomcat-7.0.54\webapps\solr\WEB-INF\lib This folder, which is the application of the Lib folder. At the same time, \lucene\solr-4.9.0\example\resources\log4j.properties the F:\tools\ development tool under the SOLR package to this log file

Copy close to D:\apache-tomcat-7.0.54\webapps\solr\WEB-INF\classes (no classes folder to create yourself manually).

Finally, the jar file inside the Lib directory of the SOLR application is like this, as shown in the following figure:

Restart Tomcat, enter the URL http://localhost:8080/manager/html, start SOLR, as shown below:

From Tomcat, visit SOLR, as shown below:

After seeing this interface, it's done ... I finally got solr done. Java is too much to configure.

Article Source: http://www.cnblogs.com/qiyebao/p/3880121.html

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.