In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-18 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/01 Report--
This article mainly introduces the relevant knowledge of how to install the full-text search server SOLer under Linux, the content is detailed and easy to understand, the operation is simple and fast, and has a certain reference value. I believe you will have something to gain after reading this Linux article on how to install the full-text search server SOLer. Let's take a look.
SOLer is a full-text search server based on Lucene, and it is also the most popular enterprise search engine. Its main functions include full-text search, hit highlight, faceted search, dynamic clustering, database integration, and the processing of rich text (such as Word, PDF). Solr is highly scalable and provides distributed search and index replication, and Solr 4 adds NoSQL support.
Solr installation creates a solr folder under the local folder
Mkdir solr
Copy the tomcat package to the solr file in the root directory
# cp-r apache-tomcat-7.0.47.tar.gz / usr/local/solr
Check it and then extract # tar-zxvf
Rename tomcat to tomcat-solr
Modify the configuration file server.xml in the conf directory
# vim server.xml
Change three port numbers to prevent port conflicts
Port= "7080" can be changed according to your own needs.
Port= "7005" can be changed according to your own needs.
Port= "7009" can be changed according to your own needs.
Test whether the tomcat change is successful after the change is completed
Now start tomcat in bin
Then use # tail-f logs/catalina.out to view the status
Start configuring solr
1. Load installation
Decompression
Learn about the solr directory
Bin startup directory
Contrib: an expansion package for solr
Dist object file: after solr-4.10.3.war is put into tomcat and started, it is equivalent to creating a search service.
Dosc: document API
Example example: the solr directory is important and is the configuration file for solr
Put the dist object file: solr-4.10.3.war into the webapps of tomcat
Start tomcat to extract the war package
Then rm-rf solr.war
Add all jar packages under the / root/solr-4.10.3/example/lib/ext directory to the solr project.
[root@localhost ext] # pwd
/ root/solr-4.10.3/example/lib/ext
[root@localhost ext] # cp * / usr/local/solr/tomcat/webapps/solr/WEB-INF/lib/
Step 7: create a solrhome.
The / example/solr directory is a solrhome. Copy this directory to / usr/local/solr/solrhome
[root@localhost example] # pwd
/ root/solr-4.10.3/example
[root@localhost example] # cp-r solr/ usr/local/solr/solrhome
[root@localhost example] #
Step 8: associate solr and solrhome. The web.xml file of the solr project needs to be modified.
# cd / tomcat-solr/webapps/solr/WEB-INF/
# vim web.xml
Step 9: start Tomcat
This is the end of the article on "how to install the full-text search server SOLer under Linux". Thank you for reading! I believe you all have a certain understanding of "how to install full-text search server SOLer under Linux". If you want to learn more, you are welcome to follow the industry information channel.
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.