In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-01 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/01 Report--
Editor to share with you how to configure and install Solr4.9.1 in the linux environment. I hope you will get something after reading this article. Let's discuss it together.
Operating environment: CentOS6.4 Tomcat7.0 JDK1.7
Software version:
Solr-4.9.1 download link: http://apache.fayea.com/lucene/solr/
IK-Analyzer-2012FF download link: http://git.oschina.net/wltea/IK-Analyzer-2012FF
Installation steps:
Install Tomcat under CentOS, no nonsense here.
Copy the "solr-4.9.1.war" file under the solr-4.9.1/dist path to the tomcat/webapps directory and change the name to solr.war.
Copy the "solr" folder under the solr-4.9.1/example path to the / usr/cloud directory. (/ usr/cloud/solr/ this path is the solr root directory)
Create the file solr.xml under the conf/Catalina/localhost/ directory of tomcat, or manually if the directory does not exist.
The solr.xml file is as follows:
DocBase is the address of the solr.war file, Environment name does not need to be modified, and value is the path copied to the local by solr-4.9.1/example/solr.
4. Copy the lib file of solr-4.9.1 to the tomcat/lib directory of tomcat.
(1) all jar files under solr-4.9.1\ dist\ solrj-lib
(2) all jar files under solr-4.9.1\ example\ lib\ ext
5. Install IKanalyzer Chinese word Segmentation
(1) put IKAnalyzer2012FF.jar in the / tomcat/webapps/solr/WEB-INF/lib directory.
(2) put the corresponding configuration file in the / usr/cloud/solr/collection1/conf directory: IKAnalyzer.cfg.xml,stopword.dic,ext.dic
Modify the content of the IKAnalyzer.cfg.xml file as follows: (the dictionary is included with IK, or it can be expanded by itself)
IK Analyzer extension configuration ext.dic; stopword.dic
6. Configure IKanalyzer Chinese word Segmentation
(1) modify the schema.xml in the / usr/cloud/solr/collection1/conf directory by adding the following two points:
Line 182 is added:
Line 450 is added:
7. Verification
After reading this article, I believe you have a certain understanding of "how to configure and install Solr4.9.1 in linux". If you want to know more about it, you are welcome to follow the industry information channel. Thank you for reading!
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.