Select Page

[Update]
This method will install an older version of Solr. To get the latest I followed this guide.

All I had to do was add:

config.vm.network :forwarded_port, host: 4569, guest: 8983

to the Vagrant file.

You can then start Tomcat with:

/etc/init.d/tomcat6 start

and Solr

sudo java -jar /opt/solr/example/start.jar

[/Update]

Installing Solr on Vagrant is pretty simple.

vagrant shh

then:

sudo apt-get update

sudo apt-get install openjdk-6-jdk

sudo apt-get install solr-tomcat

Then in your Vagrantfile add something like:

config.vm.network :forwarded_port, host: 4568, guest: 8080

Reload Vagrant:

vagrant reload

and ssh back in again.

Finally:

sudo service tomcat6 start

and Solr should be running. Test it out:

http://localhost:4568/solr/

%d bloggers like this: