How can I run solr on a windows server, so it starts up automatically?
I run it with:
java -jar start.jar
but I need the server to do this automatically.
Create a batch file with the command you need and run it on startup: some of these ideas might be of use.
If you ran solr inside tomcat, you could start tomcat as a windows service and set the service to start automatically.
I've had good luck with the "Non-Sucking Service Manager" to do this exact thing. Very simple and lightweight: http://nssm.cc/
The Scheduled Tasks feature in Windows Server will let you configure your command to be executed at startup, without the use of a batch file.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With