How to run solr on a Windows server so that it starts automatically?

How can I run solr on a Windows server, so it starts automatically?

I run it with:

java -jar start.jar

but I need a server to do this automatically.

+5
source share
4 answers

Create a batch file with the necessary command and run it at startup: some of these may be useful.

If you started solr inside tomcat, you can start tomcat as a Windows service and configure the service to start automatically.

+7
source
+6

" " Windows Server .

+2

solr windwos, :

https://github.com/serbrech/SolrWindowsService

App.config

<add key="JavaExecutable" value="C:\Program Files (x86)\Java\jre6\bin\java.exe" />
<add key="WorkingDirectory" value="C:\Solr\apache-solr-4.0\example" />
<add key="Solr.Home" value="solr" />
<add key="CommandLineArgs" value="-Djava.util.logging.config.file=logging.properties" />
<add key="ShowConsole" value="false" />
<add key="Port" value="8983" />
<add key="InstanceName" value="Pageplanner" />
<add key="ClientSettingsProvider.ServiceUri" value="" />

install.bat. , .

0

All Articles