- Download and install the Java Runtime Environment (JRE)
- Set a JAVA_HOME environment variable which points to the java install location
- Open up advanced system settings
- Click environment variables
- Add new
- Download SOLR (in this case 6.6.2)
- Place the extracted files in the location C:\SOLR
- Export a local certificate (in IIS) to a .PFX file, then place this file at the root of the C drive. In my case the file was called local.pfx
- Run the following command: "keytool -importkeystore -srckeystore C:\local.pfx -srcstoretype pkcs12 -destkeystore C:\solr\server\etc\solr-ssl.keystore.jks -deststoretype JKS" - this will prompt for the password entered when exporting the certificate. It needs to be run from the Java bin folder (in my case "C:\Program Files\Java\jre-9.0.1\bin").
- Open the solr.in.cmd file (located in C:\solr\bin) and un-comment the SSL settings shown below. Ensure you set the password as entered during the key import.
- Download NSSM - which will allow us to start SOLR as a service
- Place the extracted folder in your program files folder
- In the CMD change directory to the NSSM exe (in my case C:\Program Files\nssm-2.24\win64)
- Run the command nssm install solr6.6.2
- Enter the following information:
- Click install service
- Now open up services and start the SOLR service



SOLR will now run automatically as a windows service as required by Sitecore 9.
This post is a slight expansion of Installing Sitecore 9 dev environment by Patrick Stysiak.
This post is a slight expansion of Installing Sitecore 9 dev environment by Patrick Stysiak.