- Make sure you have Java Runtime installed according to this: http://lucene.apache.org/solr/4_10_3/SYSTEM_REQUIREMENTS.html. Unless you know specifically otherwise choose the latest version of the 64-bit Java RTE from http://www.java.com.
- Download the Solr installation zip file from the Solr homepage:
Now that you have Java Runtime installed and you have downloaded the Solr zip file, it's time to move on to the next steps:
...
- Java –jar start.jar
- Check that Solr is accessible at:
http://localhost:8983/solr/ - Exit the command prompt with ctrl + C.
...
- contexts
- etc
- lib
- logs
- resources
- webapps
- start.jar
...
- Java -Dsolr.solr.home=.. -jar start.jar
- Check that Solr is accessible at:
http://localhost:8983/solr/ - Exit the command prompt with ctrl + c.
...
Code Block | ||
---|---|---|
| ||
SolrService.exe //IS//SolrService --DisplayName="Solr Service" --Install=SOLR_SERVICE_DIR\jetty\SolrService.exe --LogPath=SOLR_SERVICE_DIR\jetty\logs --LogLevel=Debug --StdOutput=auto --StdError=auto --StartMode=java --StopMode=java --Jvm=auto ++JvmOptions=-Djetty.home=SOLR_SERVICE_DIR\jetty ++JvmOptions=-DSTOP.PORT=8087 ++JvmOptions=-DSTOP.KEY=stopsolr ++JvmOptions=-Djetty.logs=SOLR_SERVICE_DIR\jetty\logs ++JvmOptions=-Dorg.eclipse.jetty.util.log.SOURCE=true ++JvmOptions=-Xms768M ++JvmOptions=-Xmx8000M --Classpath=SOLR_SERVICE_DIR\jetty\start.jar --StartClass=org.eclipse.jetty.start.Main ++StartParams=OPTION=ALL ++StartParams=SOLR_SERVICE_DIR\jetty\etc\jetty.xml --StopClass=org.eclipse.jetty.start.Main ++StopParams=--stop ++JvmOptions=-Dsolr.solr.home=SOLR_SERVICE_DIR --StartPath=SOLR_SERVICE_DIR\jetty |
...
Optional: save the command as "installSolrService.cmd" so it can be easily edited and reinstalled with changed parameters later.
...
Info: the service can be uninstalled from the same command prompt with the command "sc delete SolrService".
...
Run the service:
- Start it from the Services control panel or SolrService.exe start from command prompt.
- Check the log files in the log subfolder, specifically commons-daemon.<date>.log for messages.
- If there is an error message, run serviceui\SolrService.exe and try to correct possible problems. An account that runs the service may need to switch to one with full access to the folders (e.g. administrator).
- If the service stays in "starting" mode it is either misconfigured, JAVA_HOME is not set or you trying to run it with a 32-bit java. You have to kill the process manually.
- The success criteria here is being able to access Solr Web Admin UI from http://localhost:8983/solr
...
1.1 Directory structure
The final folder structure should look like this:
...
- contexts
- etc
- lib
- logs
- resources
- serviceui
- solr-webapp
- webapps
...
Solr is installed using Bitnami's Solr installation package.