Run Solr 6.0.1 in background on Windows server

前端 未结 2 1118
孤独总比滥情好
孤独总比滥情好 2021-01-24 15:26

I\'d like to start a solr core (version 6.0.1) on Windows Server 2012 R2(command is: bin\\solr.cmd start), and keep it running after logging off. I\'d also like to run it under

2条回答
  •  醉酒成梦
    2021-01-24 16:03

    You can use NSSM to register Solr as a Windows Service.

    "c:\Program Files\nssm\win64\nssm" install solr6

    It's important that you use the -f parameter to run Solr in the foreground (which in this case means "run it inside NSSM"). This can be changed in the box that pops up for NSSM ("Arguments"). You can also pick which user to run the service as under "Log on".

提交回复
热议问题