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: