Under Windows Install and configure SOLR 4.9 (ii)

Source: Internet
Author: User
Tags solr

Combine SOLR and Tomcat:

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

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

Copy to the D:\DEMOS\SOLR directory

3. Create a SOLR web app that will unzip the solr-4.9.0 under the Dist directory under the Solr-4.9.0.war file

Copy to the D:\apache-tomcat-7.0.54\webapps folder, Rename to Solr.war, be sure to unzip the war file yourself, (start Tomcat will automatically unzip, but this file inside the Lib directory of things as if it is not extracted), see WebApps Below a more Solr folder, such as:

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

, locate the DataDir node, modify the value to <datadir>${solr.data.dir:d:/demos/solr/data}</datadir>, The Data folder is the place where you store the query index and data.

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

6. Place all jar packages under Dist/solrj-lib under the extracted solr-4.9.0 folder

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

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

Enter the Tomcat manager to find SOLR, if found to be not started, or the Point Start button will not start SOLR successfully, such as:

Need to look under the Tomcat log folder under Localhost.2014-07-31.log This log file, to find the crux of the problem!

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

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

Copy near D:\apache-tomcat-7.0.54\webapps\solr\WEB-INF\classes (no Classes folder to create it by hand).

Finally, the jar file inside the Lib directory of the SOLR application is like this, such as:

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

Access SOLR from within Tomcat, such as:

See this interface after you are done!!! Finally the SOLR was settled. Java is the configuration too laborious ah.

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.