[Linux] install solr 4.10.3 and centossolr on CentOS

Source: Internet
Author: User
Tags solr

[Linux] install solr 4.10.3 and centossolr on CentOS
What is Solr?

Solr is a top-level open-source project under Apache developed using Java. It is a full-text search Server Based on Lucene. Solr provides a richer query language than Lucene, supports configuration and scalability, and optimizes indexing and search performance.

Solr is a full-text retrieval server. You only need to configure Solr to implement full-text retrieval.

Bin: solr running script

Contrib: Contribution software/plug-ins of solr to enhance solr functionality.

Dist: This directory contains war and jar files generated during the build process, as well as related dependent files.

Docs: solr API documentation

Example: solr project example directory:

Example/solr: This directory is a Core directory of Solr that contains the default configuration information.

Example/multicore: This directory contains multiple Core directories set in Solr multicore.

Example/webapps: This directory contains solr. war, which can be used as a running instance project of solr.

Licenses: Some license information related to solr

1. Install jdk and tomcat

Http://www.cnblogs.com/wangzhongqiu/p/6515799.html

2. Decompress solr

[Root @ bogon ~] # Tar-zxf solr-4.10.3.tgz.tgz

3. Deploy the solr-4.10.3/dist/solr-4.10.3.war package to tomcat. And renamed it solr. war.

[Root @ bogon dist] # cp solr-4.10.3.war/usr/local/solr/tomcat/webapps/solr. war

4. decompress the war package. Start tomcat to automatically decompress the package. Disable tomcat. Delete solr. war.

[Root @ bogon bin] #./startup. sh

[Root @ bogon webapps] # rm-rf solr. war

5. Copy all jar packages under the solr-4.10.3/example/lib/ext directory to the solr project.

[Root @ bogon ext] # cp x/usr/local/solr/tomcat/webapps/solr/WEB-INF/lib/

6. Create solrhome. Solrhome is the directory that stores all the configuration files on the solr server.

Create the solrhome folder under/usr/local/solr

Go to directory solr-4.10.3/example/

[Root @ bogon example] # cp-r solr/usr/local/solr/solrhome (Note: cp-r copies the solr folder together, so pay attention to the xml Path of solr project configuration)

7: Tell the solr server the location of solrhome.

You need to modify the web. xml file of the solr project.

8: start tomcat

 

./Bin/startup. sh; tail-f ../logs/catalina. out-n1000

Note: The content in <env-entry-value> must be configured correctly. Otherwise, the following error will be reported.

If the path is written incorrectly, it is not as good as sorlconfig. xml.

8. start tomcat

 

 

 

Install analyzer tutorial http://www.cnblogs.com/zuge/p/6001508.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.