« Previous -
Version 2/5
(diff) -
Next » -
Current version
Loek Hilgersom, 2012-02-17 23:48
Setup on Debian 6 (Squeeze) systems¶
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
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:
Restarting tomcat¶
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