In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-20 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/01 Report--
This article mainly explains "how to install and configure Solr under Tomcat". Interested friends may wish to have a look at it. The method introduced in this paper is simple, fast and practical. Next let the editor to take you to learn the "Tomcat Solr installation and configuration method" bar!
Because Solr is based on java development, Solr can be easily deployed in both windows and Linux. However, because Solr provides some shell scripts for testing, management and maintenance, it is recommended to install it on Linux during production deployment and can be used in windows during testing.
The following is explained by the installation and configuration of Solr under Linux, which is similar to windows.
Wget http://apache.mirror.phpchina.co... E-tomcat-6.0.16.zip
Unzip apache-tomcat-6.0.16.zip
Mv apache-tomcat-6.0.16 / opt/tomcat
Chmod 755 / opt/tomcat/bin/*
Wget http://apache.mirror.phpchina.co... Ache-solr-1.2.0.tgz
Tar zxvf apache-solr-1.2.0.tgz
The most troublesome thing about the installation and configuration of Solr is the understanding and configuration of solr.solr.home. There are three main types.
Based on the current path
Cp apache-solr-1.2.0/dist/apache-solr-1.2.0.war / opt/tomcat/webapps/solr.war
Mkdir / opt/solr-tomcat
Cp-r apache-solr-1.2.0/example/solr/ / opt/solr-tomcat/
Cd / opt/solr-tomcat
/ opt/tomcat/bin/startup.sh
Because in this case (with no solr.solr.home environment variable or JNDI set), Solr looks for. / solr, so you need to switch to / opt/solr-tomcat at startup
Based on environment variable solr.solr.home
Add the following environment variable to the current user's environment variable (.bash _ profile) or / opt/tomcat/catalina.sh
Export JAVA_OPTS= "$JAVA_OPTS-Dsolr.solr.home=/opt/solr-tomcat/solr"
JNDI-based configuration
Mkdir-p / opt/tomcat/conf/Catalina/localhost
Touch / opt/tomcat/conf/Catalina/localhost/solr.xml, which is as follows:
Xml code
At this point, I believe you have a deeper understanding of the "method of installation and configuration of Solr under Tomcat". You might as well do it in practice. Here is the website, more related content can enter the relevant channels to inquire, follow us, continue to learn!
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.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.