BIP KB:
How To Install Apache Solr 4.7 multicore on Ubuntu 12.04 and Tomcat7
Article By BIP Admin
![]() |
Install Apache Solr 4.7 multicore OverviewI will show you how to install the Apache Solr search engine under Tomcat7servlet container on Ubuntu 12.04.4 LTS (Precise Pangolin) to be used later with Drupal 7. In this writeup I'm gonna discuss only the installation and setup of the ApacheSolr server. Specific Drupal configuration and/or Drupal side configuration to be discussed in future writeup. |
Install Tomcat7
We’re installing Oracle Java 7 before installing Tomcat7:$ sudo apt-get purge oracle-java6-installer $ sudo apt-get install software-properties-common python-software-properties $ sudo add-apt-repository ppa:webupd8team/java $ sudo apt-get update $ sudo apt-get install oracle-java7-installer
$ sudo apt-get install tomcat7 tomcat7-admin
Install Solr 4.7 multicore
$ cd ~ $ curl http://www.eu.apache.org/dist/lucene/solr/4.7.0/solr-4.7.0.tgz > solr-4.7.0.tgz $ tar xzvf solr-4.7.0.tgz $ sudo mv solr-4.7.0 /usr/share/solr $ cd /usr/share/solr/example $ sudo cp webapps/solr.war multicore/solr.war $ cd /usr/share $ sudo cp -r solr/example/lib/ext/* tomcat7/lib/ $ sudo cp -r solr/example/resources/log4j.properties tomcat7/lib/
Configure Solr
Editlog4j.properties
and set the solr.log
setting:
$ sudo nano /usr/share/tomcat7/lib/log4j.properties
solr.xml
file:
$ sudo nano /etc/tomcat7/Catalina/localhost/solr.xml
$ sudo nano /etc/tomcat7/tomcat-users.xml
$ sudo chown -R tomcat7 /usr/share/solr/example/multicore
$ sudo service tomcat7 restart
Testing Solr
You are able now to access the Solr administrative interface at http://localhost:8080/solr. Apache Solr services, corresponding to each configured core are delivered at:http://localhost:8080/solr/core0
http://localhost:8080/solr/core1
Security
Place the next line inside
in /etc/tomcat7/Catalina/localhost/solr.xml
:
Tags: apache, ubuntu, education, Apache Solr, Java, Solr, Tomcar7, Tomcat
Spin up a VPS server in no time flat
Simple setup. Full root access. Straightforward pricing.
Leave a Reply
Feedbacks
![]() This work is licensed under a Creative Commons Attribution- NonCommercial-ShareAlike 4.0 International License. |