pabluk's blog
Installing Solr on Debian 6.0
Recently I’ve been working on a Django project that uses the Haystack search API and the Solr search engine to perform full text searching on indexed data.
This project was initially deployed on a Debian 5.0 (Lenny) server with some issues with Tomcat, but using the latest stable release of Debian (code named Squeeze) install Tomcat 6 and Solr is very easy.
Just run the following
apt-get install tomcat6 tomcat6-admin
download and install the latest version of Solr
wget http://apache.cict.fr//lucene/solr/1.4.1/apache-solr-1.4.1.tgz tar xvfz apache-solr-1.4.1.tgz cd apache-solr-1.4.1 cp dist/apache-solr-1.4.1.war /var/lib/tomcat6/webapps/solr.war cp -fr example/solr /var/lib/tomcat6/ chown -R tomcat6:tomcat6 /var/lib/tomcat6/solr
after install Solr you need to restart the tomcat6 service
/etc/init.d/tomcat6 restart
And voilà, Solr is running. Point your browser to http://localhost:8080/solr/admin this should show the Solr Admin interface.
Hi! this is my personal web site and weblog about my projects, news related to free and open source software, internet and sometimes about real life ;)
about 1 year ago
It’s very insteresting. I think, I’ll try tonight.
about 1 year ago
works perfectly
thanks
about 1 year ago
Hopefully you should also add this line (http://www.edoxy.net/weblog/2010/02/apache-solr-for-drupal-on-debian/):
apt-get install sun-java6-jdk
about 1 year ago
I think it’s not necessary to install that package because it is a dependency of tomcat6, but I’ll check the dependencies between packages.
Thanks Edison
about 1 year ago
Actually, as long as solr runs on openjdk I would rather use it than the oracle version of java.
Philosophically, if you are running oracle java, you may as well be running on windows.
While that is a moot discussion in many quarters, for a lot of people running debian that matters.
about 8 months ago
Que chico que es el mundo, no?
Jajaja, estaba buscando algo parecido con solr y tomcat y cai acá asi que pasé a dejar un saludo
Pregunta: Alguna vez usaste solr con tika? Necesito trabajar con archivos PDF y cosas, y no me anda el RequestHandler
Bueno, igual seguiré googleando.
Un abrazo.
about 8 months ago
Ehh Boris como va? jajaja verdad, es chico el index de Google
Por lo de Tika no tengo idea, por ahora todo lo que he indexado con solr es texto, nada de PDFs.
Dale un abrazo, gracias por la visita y “vuelvas pronto” (léase con voz de Apu)
about 6 months ago
Funciona, gracias
about 4 months ago
Perfect thankyou for sharing the knowledge