Install Solr as Windows Service for Sitecore Content Search
To install Solr as a Windows service.
- Download and setup Solr for Sitecore.
Great tutorial from Dan Solovay on this
http://www.dansolovay.com/2013/05/setting-up-solr-with-sitecore-7.html - Download Non Sucking Service Manager from http://nssm.cc/download
- Copy the nssm.exe into your solr directory.
[caption id="attachment_292" href="https://mikerobbinssitecore.files.wordpress.com/2014/11/nssm1.png">
NSSM
- Create a bat file within the Solr/example folder. Example below, where CD is your example folder within your Solr directory.
@echo off cd "C:\solr\example\" java -Xms64M -Xmx256M -jar start.jar
- Run Command Prompt as Admin. CD to the directory containing of your NSSM.exe
- Run the following script to install Solr as a service."nssm install YourDesiredServiceName" "c:/Solr/LocationOfBatScript""E.g. nssm install MikeRobbinsSolr "C:\solr\example\Solr.bat"
[caption id="attachment_289" href="https://mikerobbinssitecore.files.wordpress.com/2014/11/solrserviceinstalled.png">
Solr Service Installed
- Start the service from the services snap in
[caption id="attachment_290" href="https://mikerobbinssitecore.files.wordpress.com/2014/11/services.png">
Solr Services