Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Installation tutorial for solr

2025-04-02 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >

Share

Shulou(Shulou.com)06/02 Report--

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!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Internet Technology

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report