On 29/10/2015 00:12, Steven White wrote:
Hi Folks,

I don't understand if this is an expected behavior or not.

On Windows, I start Solr from a command prompt like so:

     bin\solr start -p 8983 -s C:\MySolrIndex

Now, once I close the command prompt the Java process that started Solr is
killed.  is this expected?  How do I keep Solr alive when I close the
command prompt?

This dose not happen on Linux.

Thank in advanced.

Steve

Yes, this is expected behaviour. If you want to prevent it you either need to keep the command window open, or run Solr as a Windows Service (kinda like a Unix daemon, but more annoying). To do the latter I would recommend NSSM - here are some links that will help: http://mikerobbins.co.uk/2014/11/07/install-solr-as-windows-service-for-sitecore-content-search/ (from step 2)
http://www.norconex.com/how-to-run-solr5-as-a-service-on-windows/

HTH

Charlie



--
Charlie Hull
Flax - Open Source Enterprise Search

tel/fax: +44 (0)8700 118334
mobile:  +44 (0)7767 825828
web: www.flax.co.uk

Reply via email to