If you want to install Solr the easy way, you should use this section of the article. Solr doesn't work alone; it needs a Java servlet container such as Tomcat or Jetty. In this article, we'll use Jetty, although Tomcat is just as easy. First, we should install the Java JDK. If you want to install a custom version, please see this article. If you want a simple installation, execute the following commands:
sudo apt-get -y install openjdk-7-jdk mkdir /usr/java ln -s /usr/lib/jvm/java-7-openjdk-amd64 /usr/java/default
Ubuntu provides 3 Solr packages by default:
solr-common, the package that contains the actual Solr code;
solr-tomcat, Solr integrated with Tomcat; and
solr-jetty, which is just like
solr-tomcatbut with the Jetty web server. In this article, we will install
solr-tomcat, so execute the following command:
sudo apt-get -y install solr-tomcat
Your Solr instance should now be available at
http://YOUR_IP:8080/solr. Skip the next section on installing manually if you want to configure Solr.
You received this message because you are subscribed to the Google Groups "Java Posse" group.
To unsubscribe from this group and stop receiving emails from it, send an email to javaposse+...@googlegroups.com.
To post to this group, send email to java...@googlegroups.com.
Visit this group at http://groups.google.com/group/javaposse.
For more options, visit https://groups.google.com/d/optout.