This blog will focus on setting up SOLR and running it as Windows Service using Non Sucking Service Manager tool. I have tried to list down each steps I did during my installation of SOLR 6.6.2 in my windows 10 dev machine.
Install SOLR
- Grab solr-6.6.2.zip from the SOLR archives –
- Unzip it to any common location. I have placed it inside my directory D:\SOLR\solr-6.6.2
- Verify if SOLR is working.
- Open Command Prompt as admin and navigate to bin folder of Solr 6.6.2 As per above directory structure it will D:\SOLR\solr-6.6.2\bin
- Start SOLR on port 8983.
- Open the SOLR admin page to verify – http://localhost:8983/solr/
- Awesome!! SOLR is up and running on port 8983.
- After verification Stop SOLR from Command Prompt window.
Setup SOLR as Windows Service
We will be using NSSM tool for setting up SOLR as windows service. NSSM is Non Sucking Service Manager tool.
- Grab NSSM from https://nssm.cc/download
- Download the Featured pre-release : nssm-2.24-101-g897c7ad.zip (which is said to have better compatibility with Windows 10)
- Unzip the content in a common folder structure. I have placed it in same directory where I have placed my SOLR files. I have renamed folder to nssm(just to keep it simple – it can be left as is)
- Open Command prompt as admin and navigate to – D:\SOLR\nssm\win64 (Folder structure may vary for you if you have placed files in different location)
- Run the nsmm install command
- Update – application tab of nssm service installer pop-up.
- Path – D:\SOLR\solr-6.6.2\bin\solr.cmd (Point to solr.cmd from in your installed SOLR 6.6.2\bin folder.
- Startup directory- D:\SOLR\solr-6.6.2\bin (Point it to your SOLR 6.6.2\bin folder)
- Arguments – start -f -p 8983 (port on which SOLR will run)
- Service Name – solr662 (Provide the name for your SOLR service)
- Update – details tab of nssm service installer pop-up.
- Startup – Automatic
- Service Name – solr662
- Click Install Service and you should be getting confirmation as below.
- Open Services manage to verify (Run -> services.msc)
- Start the Service for the first time. – Yay!!Now SOLR is running as Windows Service in your machine.
- Verify by going to local host SOLR admin URL – http://localhost:8983/solr/#/
With this I am done with my SOLR 6.6.2 instance up and running in my Windows 10 dev box !!
Happy Sitecoring !!
2 thoughts on “Install SOLR and run as Windows Service”