Apache Solr Installation : Steps

sudo apt-get update && apt-get upgrade

sudo apt-get install tomcat6 tomcat6-admin tomcat6-common tomcat6-user tomcat6-docs tomcat6-examples

sudo apt-get install libmysql-java

wget http://lucene.apache.org/solr/

sudo tar -zxvf apache-solr-1.4.1.tgz

sudo cp apache-solr-1.4.1/dist/apache-solr-1.4.1.war /usr/share/tomcat6/webapps/solr.war

sudo cp -R apache-solr-1.4.1/example/solr/ /usr/share/tomcat6/solr/

sudo nano /etc/tomcat6/Catalina/localhost/solr.xml

(and paste the code :- <Context docBase="/usr/share/tomcat6/webapps/solr.war" debug="0" privileged="true" allowLinking="true" crossContext="true">
<Environment name="solr/home" type="java.lang.String" value="/usr/share/tomcat6/solr" override="true" />
</Context>)

sudo cp apache-solr-1.4.1/example/multicore/solr.xml /usr/share/tomcat6/solr/solr.xml

sudo cp -R apache-solr-1.4.1/example/multicore/core0 /usr/share/tomcat6/solr/

sudo cp -R apache-solr-1.4.1/example/multicore/core1 /usr/share/tomcat6/solr/

sudo mkdir /usr/share/tomcat6/solr/core0/data

sudo mkdir /usr/share/tomcat6/solr/core1/data

sudo chown -R tomcat6:tomcat6 /usr/share/tomcat6/solr/core0/data/

sudo chown -R tomcat6:tomcat6 /usr/share/tomcat6/solr/core1/data/

sudo service tomcat6 restart

sudo /opt/lampp/lampp start

Comments

Popular posts from this blog

Inserting and Moving elements inside Ruby Array

Interview Question on Ruby on Rails