Apache Solr Documentation

5.3 Ref Guide (PDF Download)
Solr Tutorial
Solr Community Wiki

Older Versions of this Guide (PDF)

5.4 Draft Ref Guide Topics


This Unreleased Guide Will Cover Apache Solr 5.4

Skip to end of metadata
Go to start of metadata

This section describes how to install Solr. You can install Solr in any system where a suitable Java Runtime Environment (JRE) is available, as detailed below. Currently this includes Linux, OS X, and Microsoft Windows. The instructions in this section should work for any platform, with a few exceptions for Windows as noted.

Got Java?

You will need the Java Runtime Environment (JRE) version 1.7 or higher. At a command line, check your Java version like this:

The exact output will vary, but you need to make sure you meet the minimum version requirement. We also recommend choosing a version that is not end-of-life from its vendor. If you don't have the required version, or if the java command is not found, download and install the latest version from Oracle at http://www.oracle.com/technetwork/java/javase/downloads/index.html.

Installing Solr

Solr is available from the Solr website at http://lucene.apache.org/solr/.

For Linux/Unix/OSX systems, download the .tgz file. For Microsoft Windows systems, download the .zip file. When getting started, all you need to do is extract the Solr distribution archive to a directory of your choosing. When you're ready to setup Solr for a production environment, please refer to the instructions provided on the Taking Solr to Production page. To keep things simple for now, extract the Solr distribution archive to your local home directory, for instance on Linux, do:

Once extracted, you are now ready to run Solr using the instructions provided in the Running Solr section.


  • No labels


  1. The directions above using the example directory provide a roughly configured and older version of Jetty running Solr from unclean directories.  For a clean install, read the SolrInstall topic linked above with topics for specific application servers, or use a stand-alone server such as Solr-Undertow (easy to configure, self-contained, high performance) for running without an application server.

  2. Isn't java 8 the required version for Solr 5.x?

    1. Java 7 is required for Solr 5.x, Java 8 is only required if you're running "trunk", a.k.a. Solr 6.x.

  3. These instructions don't work for solr 5.3.  I had to build solr and build the server:

    cd solr-{version}

    ant compile

    cd solr

    ant server


    1. I'm puzzled about what didn't work, particularly since the instructions on this page don't say anything about compiling, they're for downloading the release distro rather than building from source. Can you tell us what specifically about the instructions failed?

      Did you perhaps download the solr-XXX-src.tgz rather than solr-xxx.tgz?  That's the source release, not the binary distro so in that case you'd have to compile things.

      BTW, it's not necessary to 'ant compile' when building from Solr, just the 'ant server' step is sufficient. I often do an 'ant dist' too especially if I'm going to be using SolrJ libs....

      1. Your 100% right it was the source.(I did not realize until you asked)
        100% My mistake.

      2. Maybe there should be a comment for people that make mistakes like me?  (if you downloaded the source you will have to build it... or something like that, just a thought, but yeah still my fault for not reading the name of the package)


  4. Can these Configurations be used for production development also?

    1. There are no configurations on this page. In future, please do not add unrelated spam links to your comments or we'll be forced to ban you.