install solr jetty ubuntu

1) cd /usr/local/src

2) Download apache solr

sudo wget http://mirrors.gigenet.com/apache/lucene/solr/3.6.2/apache-solr-3.6.2.tgz

3) Decompress sudo tar xfz apache-solr-3.6.2.tgz

4) Stop jetty server sudo /etc/init.d/jetty stop

5) Move the files to Jetty’s webapps directory cp apache-solr-3.6.2/example/webapps/solr.war /opt/jetty/webapps/solr.war

6) cp -R apache-solr-3.6.2/example/solr /opt/jetty/solr
7) Create data directory cd /opt/jetty/solr
sudo mkdir data
sudo chown -R jetty:jetty data
8) Modify Jetty Configuration File

sudo vi /opt/jetty/etc/jetty.conf and copy the below given code at the end of the file

-Dsolr.solr.home=/opt/jetty/solr
-Dsolr.data.dir=/opt/jetty/solr/data

10) strt jetty sudo /etc/init.d/jetty start

11) Make sure that jetty is installed http://localhost:8080/solr

 

Share