Get the App
SLTechnology News&Howtos  ›  Internet Technology  › 

Installation tutorial for solr

Shulou Source: shulou.com Published: 2022-06-02 10:06:58 10月03日 Update

This article introduces the "solr installation tutorial" related knowledge, in the actual case operation process, many people will encounter such a dilemma, and then let the editor lead you to learn how to deal with these situations! I hope you can read it carefully and be able to achieve something!

Check the firewall status firewall-cmd-state / / View the firewall systemctl stop firewalld / / disable the firewall or set inbound rules if it is a CVM. Install JDK java-version create installation directory mkdir / env/soft official installation download the package needed to extract cd / env/soft wget https://archive.apache.org/dist/lucene/solr/7.2.1/solr-7.2.1.tgz wget http://mirror.bit.edu.cn/apache/tomcat/tomcat-8/v8.5.45/bin/apache-tomcat-8.5.45.tar.gz tar -xvf solr-7.2.1.tgz tar-xvf apache-tomcat-8.5.45.tar.gz starts deploying solr

Copy the webapp in solr-7.2.0/server/solr-webapp to tomcat's webapps and rename it to solr

Cp-r solr-7.2.1/server/solr-webapp/webapp/ / env/soft/apache-tomcat-8.5.45.tar.gz/webapps/ cd apache-tomcat-8.5.45.tar.gz/webapps/ mv webapp/ solr

Copy the jar package under solr-7.2.1\ server\ lib\ ext and the gmetric4j-1.0.7.jar under the lib directory, and copy the jar package that begins with metrics to the WEB-INF\ lib of the apache-tomcat-9.0.6\ webapps\ solr project.

Cd solr-7.2.1/server/lib/ext/cp * / env/soft/apache-tomcat-8.5.45/webapps/solr/WEB-INF/lib/cp gmetric4j-1.0.7.jar metrics-* / env/soft/apache-tomcat-8.5.45/webapps/solr/WEB-INF/lib/

Copy the solr file under solr-7.2.1/server to, rename solrhome,/env/soft/solrhome

Cd solr-7.2.1/server/ cp-r solr / env/soft/solrhome

Modify / env/soft/apache-tomcat-8.5.45/webapps/solr/WEB-INF/web.xml, find the following code, the blue part, / put/your/solr/home/here change to your own solrhome path, mine is / env/soft/solrhome path. And comment on the code in web.xml that causes the 403 problem.

Vim / env/soft/apache-tomcat-8.5.45/webapps/solr/WEB-INF/web.xml// fill in your solrHome address. Solr / home/env/soft/solrhomejava.lang.String.

Copy log.properties under solr-7.2.1/server/resources to / env/soft/apache-tomcat-8.5.45/webapps/solr/WEB-INF\ classes

Mkdir-p / env/soft/apache-tomcat-8.5.45/webapps/solr/WEB-INF/classescp solr-7.2.1/server/resources/log4j.properties / env/soft/apache-tomcat-8.5.45/webapps/solr/WEB-INF/classes/

Start tomcat http://127.0.0.1::8080/solr/index.html#/

This is the end of the "installation tutorial for solr". Thank you for reading. If you want to know more about the industry, you can follow the website, the editor will output more high-quality practical articles for you!

Tags: Copy firewall fire prevention tutorials code content more directory knowledge path practical learned next dilemma address actual beginning situation file article Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno MariaDB Xiaomi Linux macOS Shulou Tech Info