Hi Adrian, I got this to work for Solr 5.1, but when I tried this in Solr 5.2.1, it gives the error "Windows could not start the solr5.2.1 service on Local Computer. The service did not return an error. This could be an internal Windows error or an internal service error."
As Solr 5.2.1 is not using the start.jar command to run Solr, are we still able to use the same arguments to set up the nssm? Regards, Edwin On 8 July 2015 at 17:38, Adrian Liew <adrian.l...@avanade.com> wrote: > Answered my own question. :) It seems to work great for me by following > this article. > > http://www.norconex.com/how-to-run-solr5-as-a-service-on-windows/ > > Regards, > Adrian > > -----Original Message----- > From: Adrian Liew [mailto:adrian.l...@avanade.com] > Sent: Wednesday, July 8, 2015 4:43 PM > To: solr-user@lucene.apache.org > Subject: Running Solr 5.2.1 on WIndows using NSSM > > Hi guys, > > I am looking to run Apache Solr v5.2.1 on a windows machine. I tried to > setup a windows service using NSSM (Non-Sucking-Service-Manager) to install > the windows service on the machine pointing to the solr.cmd file path > itself and installing the service. > > After installation, I tried to start the windows service but it gives back > an alert message. It says \Windows could not start the SolrService service > on Local Computer. The service did not return an error. This could be an > internal Windows error or an internal service error. > > Most of the examples of older Apache Solr uses the java -start start.jar > command to run Solr and seem to run okay with nssm. I am not sure if this > could be the solr.cmd issue or NSSM's issue. > > Alternatively, I have tried to use Windows Task Scheduler to configure a > task to point to the solr.cmd as well and run task whenever the computer > starts (regardless a user is logged in or not). The task scheduler seems to > report back 'Task Start Failed' with Level of 'Error'. > > Additionally, after checking Event Viewer, it returns the error with nssm > Failed to open process handle for process with PID 3640 when terminating > service Solr Service : The parameter is incorrect. > > Chances this can point back to the solr.cmd file itself. > > Thoughts? > > Regards, > Adrian > >