I've seen clients use NSSM before for running Solr as a service on Windows.

Best

Charlie

On 02/09/2021 04:07, Reej M wrote:
Hi All,

For now we are running solr cloud starting it from the command prompt as below 
from the 2 servers for starting the 2 nodes

Server 1 & Server 2
bin\solr start -cloud -p 3883 -s “server\solr\cloud\node\solr”
bin\solr start -cloud -p 9883 -s “server\solr\cloud\node\solr”

But if we close the command prompt server will obviously go down, is there any 
way we can have this running in the background.

We tried using shell script, but we can run it as a standalone service, but is 
not working when we pass the commands to start as a cloud service.
We followed  http://lets-share.senktas.net/2017/11/solr-as-a-service.html 
<http://lets-share.senktas.net/2017/11/solr-as-a-service.html> for running as 
windows service.

Any one has tried any options for starting solr cloud as windows service, do 
share your thoughts.

Thanks
Reej


--
Charlie Hull - Managing Consultant at OpenSource Connections Limited <www.o19s.com> Founding member of The Search Network <https://thesearchnetwork.com/> and co-author of Searching the Enterprise <https://opensourceconnections.com/about-us/books-resources/>
tel/fax: +44 (0)8700 118334
mobile: +44 (0)7767 825828

OpenSource Connections Europe GmbH | Pappelallee 78/79 | 10437 Berlin
Amtsgericht Charlottenburg | HRB 230712 B
Geschäftsführer: John M. Woodell | David E. Pugh
Finanzamt: Berlin Finanzamt für Körperschaften II

Reply via email to