Solr6.0.0 + Tomcat8 configuration problems

Source: Internet
Author: User
Tags solr

Solr6.0.0 + Tomcat8 configuration problems

Solr6.0.0 + Tomcat8 configuration problems

Middleware requirements:

Apache-tomcat-8.0.32.tar.gz

Jdk-8u74-linux-x64.rpm

Solr-6.0.0.zip

0. install java JDK

Rpm-ivh jdk-8u74-linux-x64.rpm

Java-version

1.decompress apache-tomcat-8.0.32.tar.gz

Tar zxvf apache-tomcat-8.0.32.tar.gz-C/opt

2.download solr-6.0.0.zip from the official website and decompress it

Mv/root/solr-6.0.0/server/solr-webapp/opt/apache-tomcat-8.0.32/webapps/solr

Mv/root/solr-6.0.0/server/lib/ext/*/opt/apache-tomcat-8.0.32/webapps/solr/WEB-INF/lib

Mkdir/opt/apache-tomcat-8.0.32/webapps/solr/WEB-INF/classes

Mv/root/solr-6.0.0/server/resources/log4j. properties/opt/apache-tomcat-8.0.32/webapps/solr/WEB-INF/classes/

Mv/root/solr-6.0.0/server/solr/opt/solr

Vi/opt/apache-tomcat-8.0.32/webapps/solr/WEB-INF/web. xml # configure solrhome directory information

<Env-entry>

<Env-entry-name> solr/home </env-entry-name>

<Env-entry-value>/opt/solr </env-entry-value>

<Env-entry-type> java. lang. String </env-entry-type>

</Env-entry>

3. handle errors:

An error is reported at startup:

Cause analysis: The solrhome directory configuration does not take effect or is incorrect.

Solution: If the configuration does not take effect or is not configured, the system will find the solr configuration file in the current running directory. Therefore, the command is as follows:

Run the command: cd/opt to input solrhome's parent directory and then run:./apache-tomcat-8.0.32/bin/startup. sh.

Note: There are three other methods available on the Internet. It is best to set this as an environment variable to solve this problem.

Solr3.6.1 build an environment in Tomcat6

Tomcat-based Solr3.5 cluster deployment

Load Balancing for Solr clusters using Nginx on Linux

Install and use Solr in Linux

Deploy Solr 4 on Ubuntu 12.04 LTS through Tomcat

Solr implements Low Level query parsing (QParser)

Build a search Server Based on Solr 3.5

Solr 3.5 development and application tutorial PDF

Solr 4.0 deployment instance tutorial

Solr details: click here
Solr: click here

This article permanently updates the link address:

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.