Solr Installation :-
Apacha Solr requires Tomcat, so the first step, install the Tomcat server:
apt-get install tomcat6
want to get Solr and extract it to a temporary directory:
mkdir -p ~/tmp/solr/
cd ~/tmp/solr/
wget http://apache.ziply.com/lucene/solr/3.6.0/apache-solr-3.6.0.tgz
tar xzvf apache-solr-3.6.0.tgz
All the solr cores and indexes will go in /var/solr:
mkdir -p /var/solr
Copy the Solr webapp and the example multicore configuration files:
cp apache-solr-3.6.0/dist/apache-solr-3.6.0.war /var/solr/solr.war
cp -R apache-solr-3.6.0/example/multicore/* /var/solr/
chown -R tomcat6 /var/solr/
Need to point Catalina at Solr:
echo -e ‘<Context docBase=”/var/solr/solr.war” debug=”0″
privileged=”true” allowLinking=”true” crossContext=”true”>n<Environment
name=”solr/home” type=”java.lang.String” value=”/var/solr”
override=”true” />n</Context>’ | sudo tee -a /etc/tomcat6/Catalina/localhost/solr.xml
echo ‘TOMCAT6_SECURITY=no’ | sudo tee -a /etc/default/tomcat6
Change near the top of the file other environment vars are set up:
JAVA_OPTS=”$JAVA_OPTS -Dsolr.home=/var/solr”
Restart Tomcat6 and :
/etc/init.d/tomcat6 restart
Open to http://localhost:8080/solr/ – you should see it up and running.
Thanks,
Vishal Vyas
Hi Follow this steps :-
mkdir -p ~/tmp/solr/
cd ~/tmp/solr/
wget http://apache.ziply.com/lucene/solr/4.2.1/apache-solr-4.2.1.tgz
tar xzvf apache-solr-4.2.1.tgz
All the solr cores and indexes will go in /var/solr:
mkdir -p /var/solr
Copy the Solr webapp and the example multicore configuration files:
cp apache-solr-4.2.1/dist/apache-solr-4.2.1.war /var/solr/solr.war
cp -R apache-solr-4.2.1/example/multicore/* /var/solr/
chown -R tomcat6 /var/solr/
/etc/init.d/tomcat6 restart
Hi, great tutorial, you mention this:
Change near the top of the file other environment vars are set up:
JAVA_OPTS="$JAVA_OPTS -Dsolr.home=/var/solr"
But don't say what file? Is it solr.xml?
/var/solr is a Directory .
Hi Vishal,
its a good tutorial got to learn solr from the above tutorial.
Can you please provide instructions to install lucene on ubuntu 12.04.
Regards,
Vijay
Nice share Linux guru 🙂
Thanks,
Martin Leonis
tell me whre to change this line
Change near the top of the file other environment vars are set up:
JAVA_OPTS="$JAVA_OPTS -Dsolr.home=/var/solr"
what does this mean?
gzip: stdin: not in gzip format
tar: Child returned status 1
tar: Error is not recoverable: exiting now
root@ed-VGN-AW11Z-B:~/tmp/solr# tar xzvf apache-solr-3.6.0.tgz
happens when i execute this line
tar xzvf apache-solr-3.6.0.tgz