CentOS 6.6 deploy Solr5.3.1 using Tomcat 6
Solr is now an independent server. From Solr5.0, Solr is no longer released as a "war" Web Application package (Web Application Archive) deployed in any Servlet container ). The articles on solr deployment in tomcat on the Internet are basically 4. x. Now I want to record my notes on how to quickly deploy solr5.3.1 under tomcat6 in CentOS 6.6.
Solr Website: http://lucene.apache.org/solr
: Http://mirrors.cnnic.cn/apache/lucene/solr/5.3.1/solr-5.3.1.tgz
Install Tomcat 6
Yum install-y tomcat6
JRE is automatically installed when Tomcat 6 is installed, so no additional installation is required. As follows:
[Root @ localhost home] # java-version
Openjdk version "1.8.0 _ 65"
OpenJDK Runtime Environment (build 1.8.0 _ 65-b17)
OpenJDK 64-Bit Server VM (build 25.65-b01, mixed mode)
Configure solr
1. Download and decompress solr. I downloaded it to the root directory.
Wget http://mirrors.cnnic.cn/apache/lucene/solr/5.3.1/solr-5.3.1.tgz
Tar-xzf solr-5.3.1.tgz
2. Copy the webapp under the extracted directory solr-5.3.1/server/solr-webapp/to the Tomcat6/webapps/directory and change it to solr
Rsync/root/solr-5.3.1/server/solr-webapp/usr/share/tomcat6/webapps/-avzP
Cd/usr/share/tomcat6/webapps
Mv webapp solr
3. Copy all jar packages under the extracted directory solr-5.3.1/server/lib/ext/to the Tomcat6/webapps/solr/WEB-INF/lib/directory
Rsync/root/solr-5.3.1/server/lib/ext/*. jar/usr/share/tomcat6/webapps/solr/WEB-INF/lib/-avzP
4. Copy the log4j. properties file under the extracted directory solr-5.3.1/server/resources/to the Tomcat6/webapps/solr/WEB-INF/directory
Rsync/root/solr-5.3.1/server/resources/log4j. properties/usr/share/tomcat6/webapps/solr/WEB-INF/-avzP
5. Copy the solr-5.3.1 and solr-dataimporthandler-5.3.1.jar under the extracted directory solr-dataimporthandler-extras-5.3.1.jar/dist to the Tomcat6/webapps/solr/WEB-INF/lib/directory
Rsync/root/solr-5.3.1/dist/solr-dataimporthandler-*/usr/share/tomcat6/webapps/solr/WEB-INF/lib/-avzP
6. Copy the extracted directory solr-5.3.1/server/solr to the/home/directory
Rsync/root/solr-5.3.1/server/solr/home/-avzP
Note: After copying to the home Directory, You need to modify the owner and group of the sorl directory to tomcat.
7. Modify the web. xml file under Tomcat6/webapps/solr/WEB-INF/and remove the annotations for the following configuration
<Env-entry>
<Env-entry-name> solr/home </env-entry-name>
<Env-entry-value>/home/solr </env-entry-value>
<Env-entry-type> java. lang. String </env-entry-type>
</Env-entry>
Note: change the content in <env-entry-value> to the solr path in the previous step.
8. start tomcat and enter http: // IP: 8080/solr in the browser to display the Solr management interface.
Service tomcat6 start
Solr3.6.1 build an environment in Tomcat6
Tomcat-based Solr3.5 cluster deployment
Load Balancing for Solr clusters using Nginx on Linux
Install and use Solr in Linux
Deploy Solr 4 on Ubuntu 12.04 LTS through Tomcat
Solr implements Low Level query parsing (QParser)
Build a search Server Based on Solr 3.5
Solr 3.5 development and application tutorial PDF
Solr 4.0 deployment instance tutorial
Solr details: click here
Solr: click here
This article permanently updates the link address: