SOLR is now a standalone server.
From Solr5.0 onwards, SOLR is no longer published as a "war" Web application package (Web application Archive) deployed in any servlet container. Online about SOLR in the Tomcat deployment of the article is basically 4.x, and now record their TOMCAT6 under the rapid deployment of solr5.3.1.
SOLR website: HTTP://LUCENE.APACHE.ORG/SOLR
: http://mirrors.cnnic.cn/apache/lucene/solr/5.3.1/solr-5.3.1.tgz
Installing TOMCAT6
Yum Install-y Tomcat6
Since installing the TOMCAT6 also automatically installs the JRE, there is no need to install it separately. As follows:
[Email protected] home]# java-"1.8.0_65"1.8. 0_65- - 25.65-b01, Mixed mode)
Configure SOLR
1. Download and unzip 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 from the extracted directory solr-5.3.1/server/solr-webapp/to the tomcat6/webapps/directory and rename it to SOLR
rsync/root/solr-5.3.1/server/solr-webapp/webapp/usr/share/tomcat6/webapps/-AVZP
Cd/usr/share/tomcat6/webapps
MV WebApp SOLR
3. Copy all the jar packages under the solr-5.3.1/server/lib/ext/directory 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 Extract 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 extracted directory SOLR-5.3.1/SERVER/SOLR to the/home/directory
rsync/root/solr-5.3.1/server/solr/home/-AVZP
6. Modify the Web. xml file under tomcat6/webapps/solr/web-inf/to remove the comments from 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 contents of <env-entry-value> to the path of SOLR in the previous step.
7. Start Tomcat and the admin interface of SOLR will appear in the browser input HTTP://IP:8080/SOLR
Service Tomcat6 Start
CentOS 6.6 Deployment with Tomcat6 solr5.3.1