Set up solr 5.3.2 and solr5.3.2 in windows

Source: Internet
Author: User
Tags solr

Set up solr 5.3.2 and solr5.3.2 in windows

1. Installation of Tamcat, which is not described here

Path: F: \ SolrTest \ apache-tomcat-8.0.18

2. Decompress solr 5.3.2

Path: F: \ Tool \ solr-5.3.2

3. Copy solr5.3.2 webapp to tomcat

Path: "F: \ Tool \ solr-5.3.2 \ server \ solr-webapp directory" copied to the "F: \ SolrTest \ apache-tomcat-8.0.18 \ webapps" directory, rename solr,

The final directory is: "F: \ SolrTest \ apache-tomcat-8.0.18 \ webapps \ solr"

4. Copy the solr5.3.2 jar package to tomcat

Path: All files under the "F: \ Tool \ solr-5.3.2 \ server \ lib \ ext" directory, copy to "F: \ SolrTest \ apache-tomcat-8.0.18 \ webapps \ solr \ WEB-INF \ lib "Directory

5. Copy log4j

Path: "log4j under the" F: \ Tool \ solr-5.3.2 \ server \ resources "directory. properties, copy to the "F: \ SolrTest \ apache-tomcat-8.0.18 \ webapps \ solr \ WEB-INF \ classes" directory,

If the classes directory does not exist, it is created;

6. Create the solrhome directory:

Path: F: \ SolrTest \ SolrHome

7. Copy the solr File

Path: the folder solr' under the "F: \ Tool \ solr-5.3.2 \ server" directory to "F: \ SolrTest \ SolrHome"

8. modify web. xml

Modify the file path: F: \ SolrTest \ apache-tomcat-8.0.18 \ webapps \ solr \ WEB-INF \ web. xml, modify the env-entry node, and the final result is:

<env-entry>       <env-entry-name>solr/home</env-entry-name>       <env-entry-value>F:/SolrTest/SolrHome/solr</env-entry-value>       <env-entry-type>java.lang.String</env-entry-type>    </env-entry>

9. added the core folder.

Final path: F: \ SolrTest \ SolrHome \ solr \ core

10. Add configuration for core

Path: "F: \ SolrTest \ SolrHome \ solr \ configsets \ basic_configs" directory to the conf Folder: F: \ SolrTest \ SolrHome \ solr \ core folder,

The final path is: "F: \ SolrTest \ SolrHome \ solr \ core \ conf"

11. Add a data folder

Path: F: \ SolrTest \ SolrHome \ solr \ core \ data

12. Restart tomcat

Open address: http: // 127.0.0.1: 9999/solr

If solr is 6.0, go to http: // localhost: 9999/solr/index.html.

13. Operate core

Click "core Admin" on the left of the page, change name, and set "instanceDir" to "core", and click "Add core" to complete the final creation.

 

Success !!!

 

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.