Linux Learning: Installing SOLR

Source: Internet
Author: User
Tags solr

1. Unzip the Tar

TAR-ZXVF solr-4.10.3.tgz.tgz-c/opt

2. Rename to Solr

MV SOLR-4.10.3/SOLR

3. TheSOLR/dist/solr-4.10.3.war package is deployed under Tomcat. and changed its name to Solr.war .

[email protected] dist]# CP Solr-4.10.3.war/opt/tomcat/webapps/solr.war

4 . Unzip the war package. Start Tomcat automatic decompression. Turn Tomcatoff. Delete Solr.war.

650) this.width=650; "src=" Https://s3.51cto.com/wyfs02/M00/97/B6/wKiom1kxdqiRXTb2AAAghPvSK-s350.jpg "title=" 1496413817 (1). jpg "alt=" wkiom1kxdqirxtb2aaaghpvsk-s350.jpg "/>

5. Copy all the jar Packages in the/root/solr-4.10.3/example/lib/ext directory to the SOLR Project

[[email protected] ext]# CP */opt/tomcat/webapps/solr/web-inf/lib/

6. Create the Solrhome directory under/SOLR

Solrhome is to store SOLR directory of all configuration files of the server, create directories, and copy all SOLR/EXAMPLE/SOLR files .

[[email protected] solr]# mkdir solrhome[[email protected] solr]# CD Example/solr/[[email protected] solr]# CP *-R/OPT/S Olr/solrhome/cp:overwrite '/opt/solr/solrhome/readme.txt '? Ycp:overwrite '/opt/solr/solrhome/solr.xml '? Ycp:overwrite '/opt/solr/solrhome/zoo.cfg '? Y[[email protected] solr]#

7 . Modify the Web. XML file for SOLR project

<env-entry> <env-entry-name>solr/home</env-entry-name> <env-entry-value>/opt/solr/ Solrhome</env-entry-value> <env-entry-type>java.lang.string</env-entry-type></env-entry >

Description

<ENV-ENTRY-VALUE>XXXX</ENV-ENTRY-VALUE>: Configure the path to the solrhome we created earlier

8. Launch Tomcat, test

Visit: HTTP://192.168.91.8:8080/SOLR

650) this.width=650; "src=" Https://s1.51cto.com/wyfs02/M01/97/BB/wKiom1kyBALgFpF5AAEFGdddUuw138.jpg "title=" 1496449998 (1). jpg "alt=" wkiom1kybalgfpf5aaefgddduuw138.jpg "/>

This article is from "I Love Big gold" blog, please be sure to keep this source http://1754966750.blog.51cto.com/7455444/1931877

Linux Learning: Installing SOLR

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.