how to Setup Apache Solr in tomcat
>> Go hear to download the latest Java SE Runtime.
>> Download Apache TomCat
>> Test tomcat server on your browser, it'll look this way
>> Configure tomcat server, goto start > Monitor TomCat
>> Stop Tomcat server, goto Start > Monitor Tomcat > General Tab> Stop
>> Setup Solr Home Directory
>> Download Apache TomCat
>> Test tomcat server on your browser, it'll look this way
>> Configure tomcat server, goto start > Monitor TomCat
>> Stop Tomcat server, goto Start > Monitor Tomcat > General Tab> Stop
>> Setup Solr Home Directory
- Download Latest Release of Solr and unzip it in your local directory i.e. C:\Solr-4.6.0.
- Go to downloaded Solr folder above (step 1) and Copy solr.war file to Apache webapps folder. I.e. Copy C:\solr-4.6.0\dist\solr-4.6.0.war file to C:\Program Files\Apache Software Foundation\Tomcat 8.0\webapps folder (rename solr-4.6.0.war to solr.war).
- Create an empty Solr home folder. i.e. C:\solr
- Go to downloaded Solr folder above (step 1). Copy all files from C:\solr-4.6.0\solr-4.6.0\example\solr folder to C:\solr (Solr home folder). This will be your Solr home folder.
- Look into C:\solr and you will see two folders with name collection1 and bin.
- Copy the jars from C:\solr-4.6.0\example\lib\ext (all jars) into C:\Program Files\Apache Software Foundation\Tomcat 8.0\lib (this is your Tomcat server main library directory).
- Set the Java system property
solr.solr.home
to your Solr Home. Go to Windows > Start > Monitor Tomcat > Java Tab > Java Options. Enter the following entry at the end (see below screenshot): -Dsolr.solr.home=c:\solr
>> Restart apache TomCat, goto Start > Monitor Tomcat > General Tab> Stop
>> Test solr on browser http://localhost:8983/solr/
Comments
Post a Comment