Setup on Debian 6 (Squeeze) systems¶
this describes the install for Apache Solr up to Version 3.6.x
newer Version such as 4.8 will require JAVA 7
This setup is similar to the Setup on *NIX systems, with the exception that Tomcat is installed from the Debian repositories (and is therefore automatically maintained by the Debian package management).
Prerequisites (installed from Debian repositories)¶
- Sun Java 1.6 (Open JDK may or may not work)
- Tomcat 6
If not yet installed, you can install these with the following command:
sudo apt-get install sun-java6-bin sun-java6-jdk sun-java6-jre tomcat6
Make sure sun-java is the default runtime:
sudo update-alternatives --config java sudo update-alternatives --config javac
Installing and configuring solr¶
Use the attached solr install script, which is a modified version of the script in EXT:solr/resources/shell.
Download it to your server and run it (with the languages you want to install):
sudo ./install-solr-debian6-without-tomcat.sh english german french
Please use the updated script because EXT:solr moved to git and Apache Solr 3.5 is not available on mirrors anymore.
Now all there is left to do is configuring the cores you want to use in /opt/solr-tomcat/solr/solr.xml
Restart tomcat when you're finished:
Because Tomcat is installed the standard Debian way, you can stop and start tomcat with these commands:
sudo service tomcat6 stop sudo service tomcat6 start